@coconut-software/ui
Version:
React components for faster and easier web development.
25 lines (24 loc) • 915 B
TypeScript
import type { AriaAttributes, MouseEventHandler, PropsWithChildren, ReactNode } from 'react';
import type SvgIcon from '../SvgIcon/SvgIcon';
interface TabProps {
'aria-controls'?: AriaAttributes['aria-controls'];
children?: ReactNode & {
type?: {
uiName?: string;
};
};
color?: TabColor;
disabled?: boolean;
id?: string;
onClick?: MouseEventHandler<HTMLButtonElement>;
size?: TabSize;
startAdornment?: typeof SvgIcon;
value: string;
}
export type TabColor = 'default' | 'primary' | 'secondary';
export type TabSize = 'large' | 'medium' | 'small';
declare function Tab({ 'aria-controls': controls, children, color, disabled, id, onClick, size, startAdornment: StartAdornment, value, }: PropsWithChildren<TabProps>): JSX.Element;
declare namespace Tab {
var Group: typeof import("./Group").default;
}
export default Tab;