-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add BaseList demos with various previews
- Loading branch information
1 parent
95a82b5
commit 46882d9
Showing
1 changed file
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<script setup lang="ts"> | ||
definePageMeta({ | ||
title: 'BaseList', | ||
icon: 'system-uicons:list', | ||
description: 'List component', | ||
section: 'base', | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<NuiPreviewContainer title="BaseList"> | ||
<NuiPreview title="Unordered" description="List component unordered"> | ||
<BaseList class="ps-4"> | ||
<li>Finish project UX</li> | ||
|
||
<li>Meet with Andy at 3:00pm</li> | ||
|
||
<li>Get groceries for Anna</li> | ||
|
||
<li>Pay water bill</li> | ||
</BaseList> | ||
</NuiPreview> | ||
|
||
<NuiPreview title="Ordered" description="List component ordered"> | ||
<BaseList ordered class="ps-4"> | ||
<li>Finish project UX</li> | ||
|
||
<li>Meet with Andy at 3:00pm</li> | ||
|
||
<li>Get groceries for Anna</li> | ||
|
||
<li>Pay water bill</li> | ||
</BaseList> | ||
</NuiPreview> | ||
|
||
<NuiPreview title="Subtitle" description="List component subtitle"> | ||
<BaseList> | ||
<BaseListItem | ||
title="Finish project UX" | ||
subtitle="Close resubing pending tasks" | ||
/> | ||
<BaseListItem | ||
title="Meet with Andy at 3:00pm" | ||
subtitle="Meeting about next project steps" | ||
/> | ||
<BaseListItem | ||
title="Get groceries for Anna" | ||
subtitle="In preparation of next Friday's party" | ||
/> | ||
<BaseListItem | ||
title="Pay water bill" | ||
subtitle="Bill must be paid before next Tuesday" | ||
/> | ||
</BaseList> | ||
</NuiPreview> | ||
|
||
<NuiPreview title="Icon" description="List component icon"> | ||
<BaseList> | ||
<BaseListItem | ||
title="Finish project UX" | ||
subtitle="Close resubing pending tasks" | ||
> | ||
<Icon | ||
name="ph:check-circle-duotone" | ||
class="text-info-500 h-6 w-6" | ||
/> | ||
</BaseListItem> | ||
<BaseListItem | ||
title="Meet with Andy at 3:00pm" | ||
subtitle="Meeting about next project steps" | ||
> | ||
<Icon name="ph:timer-duotone" class="text-success-500 h-6 w-6" /> | ||
</BaseListItem> | ||
<BaseListItem | ||
title="Get groceries for Anna" | ||
subtitle="In preparation of next Friday's party" | ||
> | ||
<Icon name="ph:confetti-duotone" class="h-6 w-6 text-yellow-400" /> | ||
</BaseListItem> | ||
<BaseListItem | ||
title="Pay water bill" | ||
subtitle="Bill must be paid before next Tuesday" | ||
> | ||
<Icon name="ph:receipt-duotone" class="text-danger-500 h-6 w-6" /> | ||
</BaseListItem> | ||
</BaseList> | ||
</NuiPreview> | ||
|
||
<NuiPreview title="Avatar" description="List component avatar"> | ||
<BaseList> | ||
<BaseListItem | ||
title="Finish project UX" | ||
subtitle="Close resubing pending tasks" | ||
> | ||
<BaseAvatar src="https://tairo.cssninja.io/img/avatars/10.svg" /> | ||
</BaseListItem> | ||
<BaseListItem | ||
title="Meet with Andy at 3:00pm" | ||
subtitle="Meeting about next project steps" | ||
> | ||
<BaseAvatar src="https://tairo.cssninja.io/img/avatars/25.svg" /> | ||
</BaseListItem> | ||
<BaseListItem | ||
title="Get groceries for Anna" | ||
subtitle="In preparation of next Friday's party" | ||
> | ||
<BaseAvatar src="https://tairo.cssninja.io/img/avatars/15.svg" /> | ||
</BaseListItem> | ||
<BaseListItem | ||
title="Pay water bill" | ||
subtitle="Bill must be paid before next Tuesday" | ||
> | ||
<BaseAvatar src="https://tairo.cssninja.io/img/avatars/4.svg" /> | ||
</BaseListItem> | ||
</BaseList> | ||
</NuiPreview> | ||
</NuiPreviewContainer> | ||
</div> | ||
</template> |