UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

25 lines (24 loc) 748 B
import { BaseComponentProps } from '../internal/base-component'; import { NonCancelableEventHandler } from '../internal/events'; export interface TabsProps extends BaseComponentProps { tabs: ReadonlyArray<TabsProps.Tab>; variant?: TabsProps.Variant; onChange?: NonCancelableEventHandler<TabsProps.ChangeDetail>; activeTabId?: string; ariaLabel?: string; ariaLabelledby?: string; } export declare namespace TabsProps { type Variant = 'default' | 'container'; interface Tab { id: string; label: React.ReactNode; content?: React.ReactNode; disabled?: boolean; href?: string; } interface ChangeDetail { activeTabId: string; activeTabHref?: string; } }