mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore: lift components folder
This commit is contained in:
parent
76df51674d
commit
2200b29b92
301 changed files with 57 additions and 76 deletions
21
src/FormGroup/FormGroup.svelte
Normal file
21
src/FormGroup/FormGroup.svelte
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script>
|
||||
export let legendText = "";
|
||||
export let invalid = false;
|
||||
export let message = false;
|
||||
export let messageText = "";
|
||||
</script>
|
||||
|
||||
<fieldset
|
||||
data-invalid={invalid || undefined}
|
||||
class:bx--fieldset={true}
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave>
|
||||
<legend class:bx--label={true}>{legendText}</legend>
|
||||
<slot />
|
||||
{#if message}
|
||||
<div class:bx--form__requirement={true}>{messageText}</div>
|
||||
{/if}
|
||||
</fieldset>
|
Loading…
Add table
Add a link
Reference in a new issue