Components / Surfaces
Item
Displays a row or card with media, content and actions.
Security
Manage your account security settings.
<div class="item" style="max-width: 24rem">
<figure><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.7 8.9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1 1 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z"/></svg></figure>
<section>
<h3>Security</h3>
<p>Manage your account security settings.</p>
</section>
<aside>
<button class="btn" data-size="sm" data-variant="outline">Manage</button>
</aside>
</div>Installation
pnpm dlx loseta add itemnpx loseta add itemExamples
Item group
Security
Manage your account security settings.
Notifications
Choose what you want to be notified about.
<div class="item-group">
<div class="item" data-variant="outline">
<figure><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.7 8.9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1 1 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z"/></svg></figure>
<section>
<h3>Security</h3>
<p>Manage your account security settings.</p>
</section>
<aside>
<button class="btn" data-size="sm" data-variant="outline">Manage</button>
</aside>
</div>
<hr>
<div class="item" data-variant="muted">
<section>
<h3>Notifications</h3>
<p>Choose what you want to be notified about.</p>
</section>
</div>
</div>Accessibility and behavior
- Uses figure/section/aside/header/footer structure.
Files
components/item.cssbasestyles/nova/item.cssstyleInstall contract
The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.