TabNavButton
Install
yarn add @ntds/tabsImport
import { TabNavButton } from '@ntds/tabs';Props
| Prop | Type | Default | Description |
|---|---|---|---|
tabIndex? | number | 0 | Enable/disable tab selection. |
onClick? | MouseEventHandler<HTMLElement> | — | Standard click event |
isSelected? | boolean | false | Whether or not the tab should be marked active or not |
isDisabled? | boolean | false | Deactivates the tab for clicks and removes tab-index |
render? | (props) => ReactNode | — | Hook into the top render method of the wrapping element |
elementRef? | Ref<HTMLButtonElement> | — | Get the DOM-reference from the button-element |
tw? | TwGroupKeys | — | Tailwind overrides |
children | ReactNode | — | Usually simple text, but can be anything. |