1 import React from 'react';
3 import type { IconSize } from '../types';
5 interface IconProps extends React.SVGProps<SVGSVGElement> {
6 /** If specified, renders an sr-only element for screenreaders */
8 /** If specified, renders an inline title element */
11 * The size of the icon
12 * Refer to the sizing taxonomy: https://design-system.protontech.ch/?path=/docs/components-icon--basic#sizing
17 export const {{iconName}} = ({ alt, title, size = 4, className = '', viewBox = '0 0 16 16', ...rest }: IconProps) => {
22 className={`icon-size-${size} ${className}`}
28 {title ? <title>{title}</title> : null}
31 {alt ? <span className="sr-only">{alt}</span> : null}