Skip to content

Files

Latest commit

author
Jessica Peng
Feb 4, 2022
7d11123 · Feb 4, 2022

History

History
18 lines (14 loc) · 882 Bytes

MewCheckbox.mdx

File metadata and controls

18 lines (14 loc) · 882 Bytes

import { Story, Preview, Props } from '@storybook/addon-docs/blocks'; import MewCheckbox from '@/components/MewCheckbox/MewCheckbox.vue'; import './../GlobalStorybook.scss'

MEW Checkbox

<mew-checkbox />

Overview

The mew-checkbox component provides a way for users to select between different values. There is a slot called contentSlot that is used to place customizable content to the right of the checkbox. There is an option to change the color of the label text by passing a class through the className prop. There is an id prop that is used to distinguish an unique checkbox, which can be used for when mew-checkbox is found in a loop. When the checkbox is set, there is an event called input that will be emitted with the value and id as the params.

Props