mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
chore: lift components folder
This commit is contained in:
parent
76df51674d
commit
2200b29b92
301 changed files with 57 additions and 76 deletions
|
@ -1,35 +0,0 @@
|
|||
import { withKnobs, boolean, text } from "@storybook/addon-knobs";
|
||||
import Component from "./ToggleSmall.Story.svelte";
|
||||
|
||||
export default { title: "ToggleSmall", decorators: [withKnobs] };
|
||||
|
||||
export const Default = () => ({
|
||||
Component,
|
||||
props: {
|
||||
labelText: text("Label toggle input control (labelText)", ""),
|
||||
"aria-label": text("ARIA label of the toggle (aria-label)", ""),
|
||||
labelA: text("Label for untoggled state (labelA)", "Off"),
|
||||
labelB: text("Label for toggled state (labelB)", "On"),
|
||||
disabled: boolean("Disabled (disabled)", false),
|
||||
id: text("ToggleSmall id", "toggle-small-id"),
|
||||
name: text("ToggleSmall name", "toggle-small-name"),
|
||||
},
|
||||
});
|
||||
|
||||
Default.story = { name: "Default (untoggled)" };
|
||||
|
||||
export const Toggled = () => ({
|
||||
Component,
|
||||
props: {
|
||||
story: "toggled",
|
||||
labelText: text("Label toggle input control (labelText)", ""),
|
||||
"aria-label": text("ARIA label of the toggle (aria-label)", ""),
|
||||
labelA: text("Label for untoggled state (labelA)", "Off"),
|
||||
labelB: text("Label for toggled state (labelB)", "On"),
|
||||
disabled: boolean("Disabled (disabled)", false),
|
||||
id: text("ToggleSmall id", "toggle-small-id"),
|
||||
name: text("ToggleSmall name", "toggle-small-name"),
|
||||
},
|
||||
});
|
||||
|
||||
export const Skeleton = () => ({ Component, props: { story: "skeleton" } });
|
Loading…
Add table
Add a link
Reference in a new issue