Measured entry
shadcn-separator
A client-side React wrapper around Radix Separator Root that renders horizontal or vertical dividers and defaults to decorative semantics. It ships as source code, imports the radix-ui package, and relies on a local cn helper plus Tailwind utilities and the project's border color token.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 31.2 KB (96.7 KB build, 65.5 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A dependable choice for shadcn-style codebases that want one divider API for decorative and semantic use. It is easy to adapt and works without a provider, but it adds little value when a native rule and local CSS already meet the requirement.
Use it if
- You need consistent horizontal rules inside cards, menus, settings panels, or stacked content.
- You need vertical dividers in flex layouts while retaining Radix orientation and semantic behavior.
- Your project already uses Tailwind theme tokens and a shared class-merging helper.
Skip it if
- A plain semantic rule with a small CSS class already covers the design.
- You want a standalone package with compiled styles instead of source copied into the app.
- Your project does not use Tailwind and you do not want to translate utility classes into CSS.
Install
| Declared dependencies | radix-ui, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no provider required in the harness |
Add radix-ui, clsx, and tailwind-merge, provide the local cn utility, and configure Tailwind with the border color token used by bg-border. Projects without Tailwind must replace the utility classes with equivalent CSS.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/shadcn-ui/uiAlternatives
Other published entries for the card pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- tailark-veil-content-1minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 17.6KB
- Bare
- pass
- Prov
- NO
- tailark-veil-content-2minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 17.6KB
- Bare
- pass
- Prov
- NO
- tailark-mist-content-3minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 24.1KB
- Bare
- pass
- Prov
- NO
- neobrutalism-cardbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 29.6KB
- Bare
- pass
- Prov
- NO
- neobrutalism-ncardbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 29.6KB
- Bare
- pass
- Prov
- NO
- reui-icon-stackminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 30.1KB
- Bare
- pass
- Prov
- NO