2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Components

InlineCode

Updated: May 9, 2025
View on GitHub
The InlineCode component is used to display code snippets inline with text. It provides consistent styling with a monospace font and a subtle background to make code stand out from regular text. InlineCode can be used within text elements to highlight code snippets. InlineCode inherits Flex props, allowing for customization of its appearance.
Prop
Type
Default
children
React.ReactNode
className
string
style
React.CSSProperties
…and every FlexProps propinherited
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club