fix(checkbox): support two way binding

- Forward events, inline functions
- Add style, remove exported props (#7)
This commit is contained in:
Eric Liu 2019-12-20 19:13:56 -08:00
commit 724196abb5
4 changed files with 21 additions and 21 deletions

View file

@ -1,19 +1,13 @@
<script>
export let story = undefined;
const { labelText, indeterminate, disabled, hideLabel, wrapperClassName } = $$props;
import { cx } from '../../lib';
import Layout from '../../internal/ui/Layout.svelte';
import Checkbox from './Checkbox.svelte';
import CheckboxSkeleton from './Checkbox.Skeleton.svelte';
const checkboxProps = {
labelText,
indeterminate,
disabled,
hideLabel,
wrapperClassName
};
const { labelText, indeterminate, disabled, hideLabel, wrapperClassName } = $$props;
const checkboxProps = { labelText, indeterminate, disabled, hideLabel, wrapperClassName };
</script>
<Layout>