# SvgRect

> An SVG rect element.

- Category: [Text & media](https://tarve.dev/docs.md#text-media)
- Import: `import { SvgRect } from "@tarve/core";`
- Source: [packages/core/src/components/svg.ts:53](https://github.com/omarcosr/tarve/blob/main/packages/core/src/components/svg.ts#L53)

## Usage

```tsx title="SvgRect.tsx"
import { Svg, SvgRect } from "@tarve/core";

<Svg viewBox="0 0 24 24" size={64}>
  <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`

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `height` (required) | `number \| string` | — |  |
| `width` (required) | `number \| string` | — |  |
| `rx` | `number \| string` | — |  |
| `ry` | `number \| string` | — |  |
| `x` | `number \| string` | — |  |
| `y` | `number \| string` | — |  |

Previous: [Polygon](https://tarve.dev/docs/components/Polygon.md) · Next: [Input](https://tarve.dev/docs/components/Input.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/SvgRect · Index for agents: https://tarve.dev/llms.txt
