UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS

33 lines (28 loc) 913 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { AllHTMLAttributes, ReactNode } from 'react'; declare enum Colors { Blue = "blue", Error = "error", Green = "green", Pink = "pink", Purple = "purple", Success = "success", Warning = "warning", Yellow = "yellow" } declare const DEFAULT_COLOR = Colors.Pink; interface CardProps extends AllHTMLAttributes<HTMLDivElement> { children?: ReactNode; color?: `${Colors}`; dismissable?: boolean; dismissButtonLabel?: string; fontSize?: 1 | 2; icon?: ReactNode; title?: string; onDismiss?: () => void; } declare const Card: { ({ children, color, dismissable, dismissButtonLabel, fontSize, icon, onDismiss, title, ...props }: CardProps): react_jsx_runtime.JSX.Element; displayName: string; }; export { Card, Colors as CardColors, type CardProps, DEFAULT_COLOR as DEFAULT_CARD_COLOR };