feat: add ListItem component with title and subtitle

This commit is contained in:
2026-06-04 14:07:25 +02:00
parent 4af10b10f7
commit b3ec60db5d
6 changed files with 115 additions and 1 deletions
+12
View File
@@ -7,6 +7,9 @@ import TabItem from '../components/Tabs/tabItem.astro';
import TabContent from '../components/Tabs/tabContent.astro';
import Button from '../components/Button/button.astro';
import Link from '../components/Link/link.astro';
import ListItem from '../components/ListItem/listItem.astro';
import ListItemTitle from '../components/ListItem/listItemTitle.astro';
import ListItemSubtitle from '../components/ListItem/listItemSubtitle.astro';
import {
Arrow2Icon, BinIcon, BurgerIcon, CalendarIcon, CheckIcon, CloseIcon,
CodeIcon, CubeIcon, DownloadIcon, FilterIcon, HelpIcon, HomeIcon,
@@ -21,6 +24,15 @@ const initialChecked = true;
<Layout>
<main>
<h1>Nova Design System</h1>
<section>
<h2>List Item</h2>
<div style="display: flex; flex-direction: column; gap: var(--nds-spacing-md);">
<ListItem>
<ListItemTitle>List Item Title</ListItemTitle>
<ListItemSubtitle>List Item Subtitle</ListItemSubtitle>
</ListItem>
</div>
</section>
<section>
<h2>Link</h2>
<div style="display: flex; flex-direction: column; gap: var(--nds-spacing-md);">