Docs / Components / Neon Rail Accordion
Neon Rail Accordion
A sharp, square accordion with a sliding neon rail indicator and horizontal clip-path content reveal — technical control-panel aesthetic.
Dependencies
Install the following dependencies to use this component:
1npm install motion
Installation
Run the following command in your terminal to add the component to your project:
1npx rankflow-ui@latest add accordion-neon-rail
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| items | AccordionRailItem[] | DEFAULT_ITEMS | Array of items with id, question, and answer. |
| accentColor | string | #22d3ee | Accent color for the sliding rail and open-state highlights. |
| className | string | '' | Additional CSS classes for the wrapper. |