mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
parent
048ebc7b81
commit
3018c2b207
4 changed files with 22 additions and 1 deletions
|
@ -17,6 +17,9 @@
|
|||
/** Set to `true` to disable the input */
|
||||
export let disabled = false;
|
||||
|
||||
/** Set to `true` to use the read-only variant */
|
||||
export let readonly = false;
|
||||
|
||||
/** Specify the helper text */
|
||||
export let helperText = "";
|
||||
|
||||
|
@ -87,11 +90,11 @@
|
|||
rows="{rows}"
|
||||
value="{value ?? ''}"
|
||||
placeholder="{placeholder}"
|
||||
readonly="{readonly}"
|
||||
class:bx--text-area="{true}"
|
||||
class:bx--text-area--light="{light}"
|
||||
class:bx--text-area--invalid="{invalid}"
|
||||
{...$$restProps}
|
||||
readonly="{$$restProps.readonly === true ? true : undefined}"
|
||||
on:change
|
||||
on:input
|
||||
on:input="{({ target }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue