UNPKG

@cainthus/alex-library

Version:

Component React library for Cainthus - Alex Dashboard.

36 lines (32 loc) 719 B
import { SyntheticEvent, ReactNode } from "react"; export type Props = { children: ReactNode; className?: string; rounded: boolean; stretch: boolean; disabled?: boolean; size: string; theme: string; flat: boolean; onClick(event: SyntheticEvent): any; style?: object; type: string; inline: boolean; } & Partial<DefaultProps>; export const defaultProps = { theme: "primary" as | "primary" | "bright" | "success" | "dark" | "warn" | "transparent" | "default", flat: false, stretch: false, size: "md" as "sm" | "md" | "lg", rounded: false, inline: false, type: "button" as "button" | "submit" }; export type DefaultProps = Readonly<typeof defaultProps>;