The following props are available for tabs component. These are the custom props that come with we've added for the tabs component and you can use all the other native props as well.
Attribute | Type | Description | Default |
---|---|---|---|
value | Value | Set's the default visible tab | No default value it's a required prop. |
className | string | Add custom className for tabs | '' |
children | node | Add content for tabs | No default value it's a required prop. |
import type { TabsProps } from "@material-tailwind/react";
The following props are available for tabs header component. These are the custom props that come with we've added for the tabs header component and you can use all the other native props as well.
Attribute | Type | Description | Default |
---|---|---|---|
indicatorProps | object | Add custom props for tabs header indicator | undefined |
className | string | Add custom className for tabs header | '' |
children | node | Add content for tabs header | No default value it's a required prop. |
import type { TabsHeaderProps } from "@material-tailwind/react";
The following props are available for tabs body component. These are the custom props that come with we've added for the tabs body component and you can use all the other native props as well.
Attribute | Type | Description | Default |
---|---|---|---|
animate | Animate | Change tabs body animation | undefined |
className | string | Add custom className for tabs body | '' |
children | node | Add content for tabs body | No default value it's a required prop. |
import type { TabsBodyProps } from "@material-tailwind/react";
The following props are available for tab component. These are the custom props that come with we've added for the tab component and you can use all the other native props as well.
Attribute | Type | Description | Default |
---|---|---|---|
value | Value | Set's the tab value, it should be the same value as tab panel value | No default value it's a required prop. |
disabled | boolean | Disable tab | false |
className | string | Add custom className for tab | '' |
children | node | Add content for tab | No default value it's a required prop. |
import type { TabProps } from "@material-tailwind/react";
The following props are available for tab panel component. These are the custom props that come with we've added for the tab panel component and you can use all the other native props as well.
Attribute | Type | Description | Default |
---|---|---|---|
value | Value | Set's the tab panel value, it should be the same value as tab value | No default value it's a required prop. |
className | string | Add custom className for tab panel | '' |
children | node | Add content for tab panel | No default value it's a required prop. |
import type { TabPanelProps } from "@material-tailwind/react";
type value = string | number;
type animate = {
mount?: object;
unmount?: object;
};