DR.UI

Expandable Navigation

Expandable Navigation
Like
v1.0
Props
PropTypeDefaultDescription
childrenReactNode-Nested navigation structure (tabs, options, content).
initialHeightstring60pxHeight when no option is active.
finalHeightstring250pxHeight when an option is expanded.
classNamestring""Additional Tailwind / custom styles.
namestringUnique identifier for the option. Controls which content opens. Must match to <EnContent/> name.
Composition
1ExpandableNavigation 2├── EnTabs 3│ ├── EnOptions 4│ ├── EnOptions 5│ └── EnOptions 67├── EnHolder 8│ ├── EnOptions 9│ ├── EnOptions 10│ └── EnOptions 1112├── EnContent 13└── (matches EnOptions name) 1415├── EnContent 16└── (matches EnOptions name) 1718└── EnContent 19 └── (matches EnOptions name)
Dependencies
framer-motionReact IconsCLSXTailwind Merge