add form props
This commit is contained in:
parent
3c34cb0e11
commit
30517b504f
1 changed files with 4 additions and 2 deletions
|
|
@ -7,10 +7,12 @@
|
||||||
color?: Omit<DaisyColor, 'neutral'>;
|
color?: Omit<DaisyColor, 'neutral'>;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
error?: string | Snippet;
|
error?: string | Snippet;
|
||||||
|
form?: string;
|
||||||
label?: string | Snippet;
|
label?: string | Snippet;
|
||||||
|
name?: string;
|
||||||
size?: DaisySize;
|
size?: DaisySize;
|
||||||
};
|
};
|
||||||
let { bordered, color, disabled, error, label, size }: Props = $props();
|
let { bordered, color, error, label, size, ...props }: Props = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<label class="form-control w-full max-w-lg">
|
<label class="form-control w-full max-w-lg">
|
||||||
|
|
@ -53,6 +55,6 @@
|
||||||
class:textarea-success={color === 'success'}
|
class:textarea-success={color === 'success'}
|
||||||
class:textarea-warning={color === 'warning'}
|
class:textarea-warning={color === 'warning'}
|
||||||
class:textarea-error={color === 'error' || error}
|
class:textarea-error={color === 'error' || error}
|
||||||
{disabled}
|
{...props}
|
||||||
></textarea>
|
></textarea>
|
||||||
</label>
|
</label>
|
||||||
Loading…
Add table
Reference in a new issue