SvgRect
An SVG rect element.
Import
import { SvgRect } from "@tarve/core";Usage
import { Svg, SvgRect } from "@tarve/core";
<Svg viewBox="0 0 24 24" size={32}>
<SvgRect x={3} y={3} width={18} height={18} rx={4} />
</Svg>Props
SvgRect has no props of its own beyond the inherited and common props below.
Inherited from RectProps 6 props
| Prop | Type | Default |
|---|---|---|
height required | number | string | — |
width required | number | string | — |
rx | number | string | — |
ry | number | string | — |
x | number | string | — |
y | number | string | — |