robust-react-ui
Version:
A React component library, built with a focus on accessibility, extensibility and reusability.
34 lines (33 loc) • 887 B
TypeScript
import { ReactNode } from 'react';
export interface ITabListTabProps {
/**
* Provides the component with an id attribute. May be used for accessibility purposes.
*/
tabId: string;
buttonLabel: string;
/**
* Provides the component with an id attribute. May be used for accessibility purposes.
*/
buttonId: string;
tabContent: string | ReactNode;
}
export interface ITabListProps {
/**
* An accessible label.
*/
ariaLabel?: string;
/**
* Provides component with a colour theme.
* @default primary
*/
variant?: 'primary' | 'danger' | 'success' | 'secondary';
/**
* Data supporting an array of tabs.
*/
tabs: Array<ITabListTabProps>;
/**
* Component will take up the full width available.
* @default false
*/
fullWidth?: boolean;
}