/** @jsxRuntime classic */ /** @jsx jsx */ import { jsx, SxStyleProp } from 'theme-ui' import { Ref } from 'react' import { forwardRef } from '@vtex-components/utils' /** * Elementary accessible component to display svg icons. * It renders a svg element. * @example decorative only * * * * * @example grant a11y for standalone usage * * * */ export const Icon = forwardRef((props: IconProps, ref: Ref) => { const { size = 24, title, sx = {}, viewBox = '0 0 24 24', children, fill = 'none', ...svgJSXProps } = props return ( {title && {title}} {children} ) }) export interface IconProps extends React.SVGProps { size?: number title?: string sx?: SxStyleProp }