Foundation ComponentReact 18 & 19Zero Runtime CSS
Separator
A useful pause between related groups of content.
Interactive preview
Project settings
Team settings
Usage
import { Separator } from "@devvy-ui/react";
<Separator decorative={false} />API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| decorative | boolean | true | Hides the separator from assistive technology. |
| orientation | horizontal | vertical | horizontal | Layout and semantic orientation. |
Accessibility & behavior
Platform Behavior & Guidelines
Use decorative separators for visual spacing. Set decorative=false when the division conveys meaning. Give vertical separators a parent with a defined height.
Source ownership
Add the audited implementation directly into your repository with the CLI:
node /path/to/devvy-ui/packages/cli/src/cli.mjs add separatorMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Separator.tsxREACT / TSX
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.