SvgProps API Reference
Prop reference
| Title | Type | Default | Description |
|---|---|---|---|
| width* | number | โ | Width of the SVG |
| height* | number | โ | Height of the SVG |
| viewBox | string | โ | ViewBox for the SVG |
| children | ReactNode | โ | Children elements of the SVG |
| onClick | OnClickFunction<SVGElement> | โ | - |
| className | string | โ | Additional classNames for the root element |
| style | CSSProperties | โ | Additional styles for the root element |
* Props marked with an asterisk are required.
CSS target reference
| Export | CSS Class Target | Description |
|---|---|---|
| SvgTargetClassRoot | .NPUI-Svg-root | Root of the SVG component |
| SideNavContentTargetClassRoot | .NPUI-SideNavContent-root | โ |
Exports are available from /src/components/shapes/svg.tsx or from