Measured entry

shadcn-separator

cardunclassified

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.

Specimen
Harness screenshot of shadcn-separator at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-separator at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-separator at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for shadcn-separator
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal31.2 KB (96.7 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten 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

Installation record for shadcn-separator
Declared dependenciesradix-ui, clsx, tailwind-merge
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno 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/ui
License
MIT
Record published
2026-08-16

Alternatives

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.