@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
36 lines (31 loc) • 976 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { AllHTMLAttributes, ReactNode } from 'react';
declare enum Colors {
Blue = "blue",
Green = "green",
Pink = "pink",
Purple = "purple",
Yellow = "yellow",
Black = "black",
DarkGrey = "dark-grey",
Grey = "grey",
LightGrey = "light-grey",
White = "white"
}
declare const DEFAULT_COLOR = Colors.Grey;
declare enum Shapes {
Circle = "circle",
Rectangle = "rectangle",
RoundedRectangle = "roundedRectangle",
Square = "square"
}
interface SkeletonProps extends AllHTMLAttributes<HTMLDivElement> {
shape: `${Shapes}`;
children?: ReactNode;
color?: `${Colors}`;
}
declare const Skeleton: {
({ children, color, shape, ...props }: SkeletonProps): false | react_jsx_runtime.JSX.Element;
displayName: string;
};
export { DEFAULT_COLOR as DEFAULT_SKELETON_COLOR, Skeleton, Colors as SkeletonColors, type SkeletonProps, Shapes as SkeletonShapes };