structyl

SvgIcon API

View component

The full prop reference for the SvgIcon component. A wrapper for custom SVG icons.

Import

tsx
import { SvgIcon } from '@structyl/styled';

Props

SvgIcon

Current-color SVG wrapper.

PropTypeDefault
title#string

Accessible SVG title.

titleAccess#string

MUI-style alias for title.

fontSize#'inherit' | 'small' | 'medium' | 'large'

Icon size.

'medium'
color#'default' | 'inherit' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted'

Tokenized icon color.

'inherit'
className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library