URL Tabs
Enhanced Tabs component that syncs with URL parameters. Perfect for shareable tab states and deep linking.
Preview
Loading...
Installation
Use the CLI to add this component to your project.
Usage
tsx
16 linesCopy
Examples
Custom Parameter Name
Loading...
Replace History
tsx
4 linesCopy
Props
| Prop | Type | Default | Description |
|---|---|---|---|
paramName | string | "tab" | URL parameter name |
updateUrl | boolean | true | Whether to update URL |
replaceHistory | boolean | false | Replace vs push history |
defaultValue | string | Default active tab |