UNPKG

@wix/design-system

Version:

@wix/design-system

35 lines (32 loc) 1.12 kB
### children - type: ReactNode - description: Renders any content inside of a tab. ### dataHook - type: string - description: Applies a data-hook HTML attribute that can be used in the tests. ### activeId - type: string - description: Specifies an id of a currently visible tab. ### onTabChange - type: (newActiveId: string) => void - description: Defines a callback function which is called on tab change. An id of a newly selected tab is passed as a parameter. ### maxTabWidth - type: string | number | string & {} - description: Defines a maximum width of a tab button. - default: '138px' ### fluid - type: boolean - description: Stretches tabs to fill a 100% of a parent container width - default: false ### ellipsis - type: boolean - description: Specifies whether text that exceeds tab width is truncated with ellipsis. If false, text will wrap to another line. - default: true ### size - type: "small" | "medium" - description: Controls tab label font size - default: 'medium' ### className - type: string - description: Specifies a CSS class name to be appended to the component's root element. - internal