mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
chore: v11 TextArea
`cols` no longer has a defaults to 50 but remains at 100% width by default.
This commit is contained in:
parent
75b9921460
commit
8ff8007f32
4 changed files with 8 additions and 5 deletions
|
@ -5,8 +5,11 @@
|
|||
/** Specify the placeholder text */
|
||||
export let placeholder = "";
|
||||
|
||||
/** Specify the number of cols */
|
||||
export let cols = 50;
|
||||
/**
|
||||
* Specify the number of cols
|
||||
* @type {number}
|
||||
* */
|
||||
export let cols = undefined;
|
||||
|
||||
/** Specify the number of rows */
|
||||
export let rows = 4;
|
||||
|
@ -110,6 +113,7 @@
|
|||
class:bx--text-area--light="{light}"
|
||||
class:bx--text-area--invalid="{invalid}"
|
||||
maxlength="{maxCount ?? undefined}"
|
||||
style="{cols ? '' : 'width: 100%;'}"
|
||||
{...$$restProps}
|
||||
on:change
|
||||
on:input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue