Skip to main content

Section

Groups related content under a title with optional subtitle and action slot.

Preview · Section

Code​

<div class="vstack" style="max-width:480px;width:100%">
<div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:0.75rem">
<div>
<h3 style="margin:0;font-size:0.975rem">Notification Settings</h3>
<p style="margin:0;font-size:0.8rem;color:var(--muted-foreground)">Control how you receive alerts.</p>
</div>
<button class="outline small">Edit</button>
</div>
<hr style="border:none;border-top:1px solid var(--border);margin:0" />
</div>

Props​

PropTypeDefaultDescription
titlestring—Section title
subtitlestring—Supporting text
Version history

See the Changelog for version history and breaking changes.