cainthus-alex-library
Version:
Component React library for Cainthus - Alex Dashboard
18 lines (14 loc) • 435 B
text/typescript
import { ReactNode } from 'react';
export type Props = {
children: ReactNode,
style?: object,
className: string,
theme: string,
weight: string,
} & Partial<DefaultProps>;
export const defaultProps = {
theme: 'primary' as 'primary' | 'secondary' | 'success' | 'error' | 'default',
weight: 'normal' as 'bold' | 'normal' | 'light' | 'lighter',
className: ''
};
export type DefaultProps = Readonly<typeof defaultProps>;