@shopify/polaris
Version:
Shopify’s admin product component library
18 lines (17 loc) • 580 B
TypeScript
import React from 'react';
import { TabDescriptor } from './types';
export interface TabsProps {
/** Content to display in tabs */
children?: React.ReactNode;
/** Index of selected tab */
selected: number;
/** List of tabs */
tabs: TabDescriptor[];
/** Fit tabs to container */
fitted?: boolean;
/** Text to replace disclosures horizontal dots */
disclosureText?: string;
/** Callback when tab is selected */
onSelect?(selectedTabIndex: number): void;
}
export declare function Tabs(props: TabsProps): JSX.Element;