Skip to content

Commit

Permalink
feat: add BaseList demos with various previews
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 18, 2023
1 parent 95a82b5 commit 46882d9
Showing 1 changed file with 120 additions and 0 deletions.
120 changes: 120 additions & 0 deletions .playground/pages/tests/base/list.vue
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>

0 comments on commit 46882d9

Please sign in to comment.