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