Tabs

Navigation

A component for organizing content into multiple panels, with only one panel visible at a time.

Installation

bash
1npx @dinachi/cli@latest add tabs

Run the CLI command above to automatically install the component and its dependencies.

API Reference

PropTypeDefaultDescription
defaultValue
stringThe default selected tab
value
stringThe controlled selected tab
onValueChange
(value: string) => voidCallback fired when the selected tab changes