import * as React from 'react'; import classNames from 'classnames'; import type { SafeExtract, Size, Variant } from '../../types'; import { iconClassName } from './iconClassName'; import type { IconName } from './IconName'; export interface IconProps { /** * Icon to be displayed. */ icon: IconName; /** * Color variant of the icon. */ variant?: 'default' | SafeExtract; /** * Size of the icon. * @default 'md' */ size?: SafeExtract; /** * Title attribute of the icon. */ title?: React.HTMLAttributes['title']; } export const Icon = React.forwardRef(function Icon( { icon, variant = 'default', size = 'md', title, ...rest }: IconProps, forwardedRef ) { return ( ); });