Divider.
A fine line with a soft edge.
Live preview
import { Divider } from "luminescent";
import "luminescent/style.css";
export function Example() {
return (
<Divider orientation="horizontal" intensity="low" glowDirection="bottom" />
);
}
Installation
npm install luminescent
Import luminescent/style.css once at your application root. The example above uses the same package implementation as Storybook.
Variants and states
Use the preview controls to explore the supported variants, sizes, disabled/loading states and reduced motion. Controls appear only where the component exposes the corresponding prop. Theme and glow apply to every component.
API reference
Generated from the source TypeScript interfaces. Native attributes, className, style, aria-* and data-* also pass through to the documented element. Import DividerProps from the package for the full inherited contract.
| Prop | Type | Details |
|---|---|---|
orientation | 'horizontal' | 'vertical' | Optional unless marked required. |
intensity | 'low' | 'medium' | 'high' | Optional unless marked required. |
glowDirection | 'left' | 'right' | 'top' | 'bottom' | 'both' | Optional unless marked required. |
color | string | Optional unless marked required. |
Accessibility and keyboard
Exposes separator and orientation. Set role="presentation" when purely decorative. The default orientation remains vertical for compatibility.
Keep labels meaningful and test application-level contrast, focus order and screen-reader output. See the accessibility guide for composition requirements.
Theme customization
import { LuminescentProvider, Divider } from "luminescent";
import "luminescent/style.css";
export function Example() {
return (
<LuminescentProvider theme="light" accent="violet" glow="subtle">
<Divider
orientation="horizontal"
intensity="low"
glowDirection="bottom"
/>
</LuminescentProvider>
);
}
Switch between light and dark in the preview, or open the playground for a larger workspace. Custom CSS variables can override spacing, color, typography and effects.