Skip to content

Commit

Permalink
Merge pull request #8401 from roiLeo/fix/ui/neoCheckboxStory
Browse files Browse the repository at this point in the history
🔧 NeoCheckbox story
  • Loading branch information
roiLeo authored Dec 5, 2023
2 parents be3b93d + 10d4b19 commit e6c1f3c
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 e6c1f3c

Please sign in to comment.