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

Line

Updated: May 9, 2025
View on GitHub
The Line component is used to create horizontal or vertical divider lines with consistent styling. It's useful for visually separating content sections in your application. Use the vert prop to create a vertical line instead of a horizontal one. The Line component inherits all Flex props, allowing for customization of its appearance. Add margin to create space around the line.
Prop
Type
Default
vert
Draw it vertically instead of horizontally.
boolean
style
React.CSSProperties
…and every FlexProps propinherited
className
string
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club