Props
Size
number | string
required
The width of the SVG surface. Can be a number (pixels) or a string (e.g., “100%”).
number | string
required
The height of the SVG surface. Can be a number (pixels) or a string (e.g., “100%”).
Viewport
{ x: number, y: number, width: number, height: number }
The SVG viewBox attribute, defining the position and dimension of the viewport.If not provided, defaults to
{ x: 0, y: 0, width, height } based on the width and height props.Appearance
string
CSS class name to apply to the SVG element.
CSSProperties
Inline styles to apply to the SVG element.
Accessibility
string
The title of the SVG, rendered as a
<title> element for accessibility.string
The description of the SVG, rendered as a
<desc> element for accessibility.Content
ReactNode
SVG elements to render inside the Surface.
SVG properties
This component accepts all standard SVG element properties including:xmlns- XML namespacexmlnsXlink- XLink namespacepreserveAspectRatio- How to scale the viewBox