grommet
Version:
focus on the essential experience
33 lines (27 loc) • 763 B
TypeScript
import * as React from 'react';
import {
A11yTitleType,
AlignSelfType,
GridAreaType,
MarginType,
} from '../../utils';
export interface TabsProps {
a11yTitle?: A11yTitleType;
activeIndex?: number;
alignSelf?: AlignSelfType;
alignControls?: AlignSelfType;
children: React.ReactNode;
flex?: 'grow' | 'shrink' | boolean;
gridArea?: GridAreaType;
justify?: 'start' | 'center' | 'end';
margin?: MarginType;
messages?: { tabContents?: string };
onActive?: (index: number) => void;
}
type divProps = Omit<
React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
'children'
>;
export interface TabsExtendedProps extends TabsProps, divProps {}
declare const Tabs: React.FC<TabsExtendedProps>;
export { Tabs };