Skip to content

Commit

Permalink
🔧 NeoCheckbox story
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo committed Dec 4, 2023
1 parent f5357e5 commit 10d4b19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions libs/ui/src/components/NeoCheckbox/NeoCheckbox.story.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<template>
<Story title="NeoButton" :layout="{ type: 'grid', width: '200px' }">
<Variant title="small neo button">
<Story title="NeoCheckbox" :layout="{ type: 'grid', width: '200px' }">
<Variant title="Small NeoCheckbox">
<NeoCheckbox size="small"> {{ label }} </NeoCheckbox>
</Variant>
<Variant title="Default NeoCheckbox">
<NeoCheckbox> {{ label }} </NeoCheckbox>
</Variant>
<Variant title="Large NeoCheckbox">
<NeoCheckbox size="large"> {{ label }} </NeoCheckbox>
</Variant>
</Story>
</template>

Expand Down
2 changes: 2 additions & 0 deletions libs/ui/src/components/NeoCheckbox/NeoCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:native-value="checkboxValue"
:disabled="disabled"
:label-class="labelClass"
:size="size"
@update:modelValue="updateValue">
<slot />
</o-checkbox>
Expand All @@ -17,6 +18,7 @@ const props = defineProps<{
disabled?: boolean
modelValue: boolean
labelClass?: string
size?: string
}>()
const emit = defineEmits(['update:modelValue'])
Expand Down

0 comments on commit 10d4b19

Please sign in to comment.