mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore: lift components folder
This commit is contained in:
parent
76df51674d
commit
2200b29b92
301 changed files with 57 additions and 76 deletions
8
src/FormItem/FormItem.Story.svelte
Normal file
8
src/FormItem/FormItem.Story.svelte
Normal file
|
@ -0,0 +1,8 @@
|
|||
<script>
|
||||
import { NumberInput } from "../NumberInput";
|
||||
import FormItem from "./FormItem.svelte";
|
||||
</script>
|
||||
|
||||
<FormItem>
|
||||
<NumberInput id="number-input-1" />
|
||||
</FormItem>
|
6
src/FormItem/FormItem.stories.js
Normal file
6
src/FormItem/FormItem.stories.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { withKnobs } from "@storybook/addon-knobs";
|
||||
import Component from "./FormItem.Story.svelte";
|
||||
|
||||
export default { title: "FormItem", decorators: [withKnobs] };
|
||||
|
||||
export const Default = () => ({ Component });
|
9
src/FormItem/FormItem.svelte
Normal file
9
src/FormItem/FormItem.svelte
Normal file
|
@ -0,0 +1,9 @@
|
|||
<div
|
||||
class:bx--form-item={true}
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave>
|
||||
<slot />
|
||||
</div>
|
1
src/FormItem/index.js
Normal file
1
src/FormItem/index.js
Normal file
|
@ -0,0 +1 @@
|
|||
export { default as FormItem } from "./FormItem.svelte";
|
Loading…
Add table
Add a link
Reference in a new issue