welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
12 lines (11 loc) • 385 B
TypeScript
import { CSSProperties } from 'react';
import { ForwardRefProps } from '../../utils';
import { icons } from './icons';
export type IconName = (typeof icons)[number];
export interface IconOptions {
colors?: CSSProperties[];
size?: '2xl' | '3xl' | 'lg' | 'md' | 'sm' | 'xl' | 'xs' | 'xxl';
}
export type IconProps = ForwardRefProps<IconOptions & {
name: IconName;
}, 'svg'>;