Borders, radius, and shadow
Supported borders, radius, and shadow utilities.
Quick reference
| Syntax | Behavior |
|---|---|
border / border-0 / border-2 | Drawn width: 1 / 0 / 2 logical units. |
rounded-none / sm / md / lg / xl / 2xl | Named corner sizes; each uses rounded-. |
rounded-card / rounded-control / rounded-full | Semantic or capsule shape. |
border-TOKEN | Border color. |
shadow-none / shadow-sm | Portable shadow strength. |
overflow-hidden | Clip content to bounds. |
Example
<View class="w-24 h-16 bg-card border border-border rounded-xl shadow-sm" />
Rules and validation
Shadow appearance maps to native drawing/elevation and can differ by platform. Corner radius remains constrained by presented bounds. Use explicit transition-border, transition-radius, or transition-shadow to animate these channels.