mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
chore(form): add stories for Form, FormItem, FormLabel
This commit is contained in:
parent
8398e478e7
commit
f366b7b948
18 changed files with 152 additions and 22 deletions
17
src/components/FormLabel/FormLabel.Story.svelte
Normal file
17
src/components/FormLabel/FormLabel.Story.svelte
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script>
|
||||
export let story = undefined;
|
||||
|
||||
import Layout from '../../internal/ui/Layout.svelte';
|
||||
import Tooltip from '../Tooltip';
|
||||
import FormLabel from './FormLabel.svelte';
|
||||
</script>
|
||||
|
||||
<Layout>
|
||||
{#if story === 'tooltip'}
|
||||
<FormLabel>
|
||||
<Tooltip triggerText="Label">This is the content of the tooltip.</Tooltip>
|
||||
</FormLabel>
|
||||
{:else}
|
||||
<FormLabel>Label</FormLabel>
|
||||
{/if}
|
||||
</Layout>
|
Loading…
Add table
Add a link
Reference in a new issue