@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
29 lines (26 loc) • 986 B
TypeScript
import { AllHTMLAttributes, ReactNode, ElementType } from 'react';
import { T as Themes } from '../constants-QFINMz1u.js';
import { AlternateElevations, Elevations } from './Paper.constants.js';
import { Variants } from '../Typography/Typography.constants.js';
interface PaperProps extends Omit<AllHTMLAttributes<HTMLDivElement>, 'onToggle' | 'title'> {
children: ReactNode;
collapseButtonLabel?: string;
collapsed?: boolean;
collapsible?: boolean;
contentClassName?: string;
defaultCollapsed?: boolean;
element?: ElementType;
elevation?: 0 | 1 | 2 | 3 | `${AlternateElevations}` | `${Elevations}`;
expandButtonLabel?: string;
fullStyle?: boolean;
inlineStyle?: boolean;
theme?: Themes;
title?: ReactNode;
titleClassName?: string;
titleVariant?: `${Variants}`;
toggleButtonLabel?: string;
onCollapse?: () => void;
onExpand?: () => void;
onToggle?: (collapsed: boolean) => void;
}
export type { PaperProps };