mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
29 lines
637 B
Svelte
29 lines
637 B
Svelte
|
<script context="module">
|
||
|
import { Template, Story } from "@storybook/addon-svelte-csf";
|
||
|
import Group from "./Index.svelte";
|
||
|
import Button from "../button/shared/Button.svelte";
|
||
|
import { allModes } from "../storybook/modes";
|
||
|
|
||
|
export const meta = {
|
||
|
title: "Layout Elements/Group",
|
||
|
component: Group,
|
||
|
parameters: {
|
||
|
chromatic: {
|
||
|
modes: {
|
||
|
desktop: allModes["desktop"],
|
||
|
mobile: allModes["mobile"]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<Template let:args>
|
||
|
<Group {...args}>
|
||
|
<Button elem_id="btn" size="lg">test</Button>
|
||
|
<Button elem_id="btn" size="lg">test</Button>
|
||
|
</Group>
|
||
|
</Template>
|
||
|
|
||
|
<Story name="Group Layout" />
|