๐ŸงจPre-releaseYou shouldn't use this library-1 min read

SvgProps API Reference

Prop reference

TitleTypeDefaultDescription
width*number
โ€“

Width of the SVG

height*number
โ€“

Height of the SVG

viewBoxstring
โ€“

ViewBox for the SVG

childrenReactNode
โ€“

Children elements of the SVG

onClickOnClickFunction<SVGElement>
โ€“-
classNamestring
โ€“

Additional classNames for the root element

styleCSSProperties
โ€“

Additional styles for the root element

* Props marked with an asterisk are required.

CSS target reference

ExportCSS Class TargetDescription
SvgTargetClassRoot.NPUI-Svg-root

Root of the SVG component

SideNavContentTargetClassRoot.NPUI-SideNavContent-root
โ€“
Exports are available from /src/components/shapes/svg.tsx or from
Made by .