mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31: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
26
src/TextArea/TextArea.stories.js
Normal file
26
src/TextArea/TextArea.stories.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
import { withKnobs, boolean, text, number } from "@storybook/addon-knobs";
|
||||
import Component from "./TextArea.Story.svelte";
|
||||
|
||||
export default { title: "TextArea", decorators: [withKnobs] };
|
||||
|
||||
export const Default = () => ({
|
||||
Component,
|
||||
props: {
|
||||
id: text("TextArea id", "text-area-id"),
|
||||
name: text("TextArea name", "text-area-name"),
|
||||
disabled: boolean("Disabled (disabled)", false),
|
||||
light: boolean("Light variant (light)", false),
|
||||
hideLabel: boolean("No label (hideLabel)", false),
|
||||
labelText: text("Label text (labelText)", "Text Area label"),
|
||||
invalid: boolean("Show form validation UI (invalid)", false),
|
||||
invalidText: text(
|
||||
"Content of form validation UI (invalidText)",
|
||||
"A valid value is required"
|
||||
),
|
||||
placeholder: text("Placeholder text (placeholder)", "Placeholder text."),
|
||||
cols: number("Columns (columns)", 50),
|
||||
rows: number("Rows (rows)", 4),
|
||||
},
|
||||
});
|
||||
|
||||
export const Skeleton = () => ({ Component, props: { story: "skeleton" } });
|
Loading…
Add table
Add a link
Reference in a new issue