-
-
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 and reorder demos on playground
- Loading branch information
1 parent
44cf341
commit 8c2e048
Showing
9 changed files
with
3,007 additions
and
747 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,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> |
Oops, something went wrong.