UNPKG

@snowball-tech/fractal

Version:

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

29 lines (24 loc) 904 B
import { V as Variants } from '../../../Typography.constants-DvMtFxBN.js'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { AllHTMLAttributes, ReactNode } from 'react'; declare enum Sizes { S = "s", M = "m", L = "l", XL = "xl", Fluid = "fluid" } declare const DEFAULT_SIZE = Sizes.M; declare const sizeToTypographyVariant: Record<Sizes, `${Variants}`>; interface AvatarProps extends Omit<AllHTMLAttributes<HTMLImageElement>, 'size'> { children?: ReactNode; disabled?: boolean; imageUrl?: string; name?: string; size?: `${Sizes}`; } declare const Avatar: { ({ children, disabled, imageUrl, name, size, ...props }: AvatarProps): react_jsx_runtime.JSX.Element; displayName: string; }; export { Avatar, type AvatarProps, Sizes as AvatarSizes, DEFAULT_SIZE as DEFAULT_AVATAR_SIZE, sizeToTypographyVariant as avatarSizeToTypographyVariant };