UNPKG

@cimpress/react-components

Version:
30 lines 859 B
import React, { type ComponentType, ReactNode } from 'react'; export interface TabProps { /** * The unique identifier of the tab */ id: string; /** * The top level title of the tab */ title: ReactNode; /** * Optional description shown below the title */ description?: ReactNode; /** * The icon from the @cimpress-technology/react-streamline-icons library */ icon?: ComponentType<any>; /** * A callback function executed when a user clicks on a specific tab */ onTabClick: (e: any, tabId: string) => void; /** * A flag denoting whether the tab is active or not */ isActive: boolean; } declare const Tab: ({ id, title, description, icon: Icon, onTabClick, isActive }: TabProps) => React.JSX.Element; export default Tab; //# sourceMappingURL=Tab.d.ts.map