@storybook/design-system
Version:
Storybook design system
23 lines • 795 B
TypeScript
import React, { FunctionComponent } from 'react';
declare type Status = 'default' | 'positive' | 'negative' | 'warning' | 'neutral' | 'link' | 'inverse';
declare type Size = 'small' | 'large';
declare type Alignment = 'left' | 'center' | 'right';
export interface CardinalProps {
isLoading?: boolean;
selectable?: boolean;
active?: boolean;
size?: Size;
onHover?: (e: boolean) => void;
onClick?: React.FormEventHandler<HTMLInputElement>;
count: React.ReactNode;
countLink?: string;
text: string;
status?: Status;
noPlural?: boolean;
CountWrapper?: React.ElementType;
TextWrapper?: React.ElementType;
alignment?: Alignment;
}
export declare const Cardinal: FunctionComponent<CardinalProps>;
export {};
//# sourceMappingURL=Cardinal.d.ts.map