mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore: remove storybook
This commit is contained in:
parent
856086dc71
commit
378fe06e03
116 changed files with 103 additions and 14249 deletions
|
@ -1,14 +0,0 @@
|
|||
<script>
|
||||
export let story = undefined;
|
||||
|
||||
import RadioButton from "./RadioButton.svelte";
|
||||
import RadioButtonSkeleton from "./RadioButton.Skeleton.svelte";
|
||||
|
||||
$: checked = false;
|
||||
</script>
|
||||
|
||||
{#if story === 'skeleton'}
|
||||
<RadioButtonSkeleton />
|
||||
{:else}
|
||||
<RadioButton {...$$props} bind:checked id="radio-1" />
|
||||
{/if}
|
|
@ -1,26 +0,0 @@
|
|||
import { withKnobs, text, select, boolean } from "@storybook/addon-knobs";
|
||||
import Component from "./RadioButton.Story.svelte";
|
||||
|
||||
export default { title: "RadioButton", decorators: [withKnobs] };
|
||||
|
||||
const labelPositions = {
|
||||
"Left (left)": "left",
|
||||
"Right (right)": "right",
|
||||
};
|
||||
|
||||
export const Default = () => ({
|
||||
Component,
|
||||
props: {
|
||||
name: text("Form item name (name)", "test"),
|
||||
value: text("Value (value)", "standard"),
|
||||
labelText: text("Label text (labelText)", "Standard Radio Button"),
|
||||
labelPosition: select(
|
||||
"Label position (labelPosition)",
|
||||
labelPositions,
|
||||
"right"
|
||||
),
|
||||
disabled: boolean("Disabled (disabled)", false),
|
||||
},
|
||||
});
|
||||
|
||||
export const Skeleton = () => ({ Component, props: { story: "skeleton" } });
|
Loading…
Add table
Add a link
Reference in a new issue