Separator
v0.5.0Horizontal or vertical hairline.
Separator in toolbar
Install
npx shadcn add @syncrobotic/separator Also installs: radix-ui, @syncrobotic/cn
Overview
A hairline between groups of content.
When to use
- Between sections of a menu, a card or a toolbar.
Use something else
- Rows of a list: Grouped list, which draws inset dividers itself.
- Space alone, when the groups are already clear.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Separator vertical
Separator with label
Usage rules
- Splits groups the eye would otherwise run together. If spacing already separates them, leave it out.
- Decorative by default; mark it as a separator only between groups of a menu or toolbar.
Changelog
- 0.5.02026-11-17First versioned release. Earlier history is in CHANGELOG.md.