Skip to content

Commit

Permalink
feat: add and reorder demos on playground
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 19, 2023
1 parent 44cf341 commit 8c2e048
Show file tree
Hide file tree
Showing 9 changed files with 3,007 additions and 747 deletions.
457 changes: 341 additions & 116 deletions .playground/pages/tests/authority/colors.vue

Large diffs are not rendered by default.

215 changes: 215 additions & 0 deletions .playground/pages/tests/base/kbd.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
<script setup lang="ts">
definePageMeta({
title: 'BaseKbd',
icon: 'system-uicons:browser',
description: 'Kbd component',
section: 'base',
})
</script>

<template>
<div>
<NuiPreviewContainer title="BaseKbd">
<NuiPreview
title="Rounded: none: icon"
description="Kbd component radius with icon"
>
<div class="flex flex-wrap items-end gap-3">
<BaseKbd
size="xs"
color="default"
rounded="none"
icon="ri:command-line"
/>
<BaseKbd
size="sm"
color="default"
rounded="none"
icon="ri:command-line"
/>
<BaseKbd
size="md"
color="default"
rounded="none"
icon="ri:command-line"
/>
<BaseKbd
size="lg"
color="default"
rounded="none"
icon="ri:command-line"
/>
</div>
</NuiPreview>

<NuiPreview
title="Rounded: sm: icon"
description="Kbd component radius with icon"
>
<div class="flex flex-wrap items-end gap-3">
<BaseKbd
size="xs"
color="default"
rounded="sm"
icon="ri:command-line"
/>
<BaseKbd
size="sm"
color="default"
rounded="sm"
icon="ri:command-line"
/>
<BaseKbd
size="md"
color="default"
rounded="sm"
icon="ri:command-line"
/>
<BaseKbd
size="lg"
color="default"
rounded="sm"
icon="ri:command-line"
/>
</div>
</NuiPreview>

<NuiPreview
title="Rounded: md: icon"
description="Kbd component radius with icon"
>
<div class="flex flex-wrap items-end gap-3">
<BaseKbd
size="xs"
color="default"
rounded="md"
icon="ri:command-line"
/>
<BaseKbd
size="sm"
color="default"
rounded="md"
icon="ri:command-line"
/>
<BaseKbd
size="md"
color="default"
rounded="md"
icon="ri:command-line"
/>
<BaseKbd
size="lg"
color="default"
rounded="md"
icon="ri:command-line"
/>
</div>
</NuiPreview>

<NuiPreview
title="Rounded: lg: icon"
description="Kbd component radius with icon"
>
<div class="flex flex-wrap items-end gap-3">
<BaseKbd
size="xs"
color="default"
rounded="lg"
icon="ri:command-line"
/>
<BaseKbd
size="sm"
color="default"
rounded="lg"
icon="ri:command-line"
/>
<BaseKbd
size="md"
color="default"
rounded="lg"
icon="ri:command-line"
/>
<BaseKbd
size="lg"
color="default"
rounded="lg"
icon="ri:command-line"
/>
</div>
</NuiPreview>

<NuiPreview
title="Rounded: full: icon"
description="Kbd component radius with icon"
>
<div class="flex flex-wrap items-end gap-3">
<BaseKbd
size="xs"
color="default"
rounded="full"
icon="ri:command-line"
/>
<BaseKbd
size="sm"
color="default"
rounded="full"
icon="ri:command-line"
/>
<BaseKbd
size="md"
color="default"
rounded="full"
icon="ri:command-line"
/>
<BaseKbd
size="lg"
color="default"
rounded="full"
icon="ri:command-line"
/>
</div>
</NuiPreview>

<NuiPreview
title="Slot: default"
description="Kbd component default slot"
>
<div class="flex flex-wrap items-end gap-3">
<BaseKbd size="xs" color="default" rounded="md">ctrl</BaseKbd>
<BaseKbd size="sm" color="default" rounded="md">ctrl</BaseKbd>
<BaseKbd size="md" color="default" rounded="md">ctrl</BaseKbd>
<BaseKbd size="lg" color="default" rounded="md">ctrl</BaseKbd>
</div>
</NuiPreview>

<NuiPreview title="Color: muted" description="Kbd component muted color">
<div class="flex flex-wrap items-end gap-3">
<BaseKbd
size="xs"
color="muted"
rounded="md"
icon="ri:command-line"
/>
<BaseKbd
size="sm"
color="muted"
rounded="md"
icon="ri:command-line"
/>
<BaseKbd
size="md"
color="muted"
rounded="md"
icon="ri:command-line"
/>
<BaseKbd
size="lg"
color="muted"
rounded="md"
icon="ri:command-line"
/>
</div>
</NuiPreview>
</NuiPreviewContainer>
</div>
</template>
Loading

0 comments on commit 8c2e048

Please sign in to comment.