mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(text-area): type value
prop as nullable (#1933)
This commit is contained in:
parent
d73fe168f2
commit
47860ce1d7
4 changed files with 9 additions and 6 deletions
|
@ -4056,7 +4056,7 @@ None.
|
|||
| Prop name | Required | Kind | Reactive | Type | Default value | Description |
|
||||
| :---------- | :------- | :--------------- | :------- | -------------------------------------------- | ------------------------------------------------ | ----------------------------------------------- |
|
||||
| ref | No | <code>let</code> | Yes | <code>null | HTMLTextAreaElement</code> | <code>null</code> | Obtain a reference to the textarea HTML element |
|
||||
| value | No | <code>let</code> | Yes | <code>string</code> | <code>""</code> | Specify the textarea value |
|
||||
| value | No | <code>let</code> | Yes | <code>null | string</code> | <code>""</code> | Specify the textarea value. |
|
||||
| placeholder | No | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the placeholder text |
|
||||
| cols | No | <code>let</code> | No | <code>number</code> | <code>50</code> | Specify the number of cols |
|
||||
| rows | No | <code>let</code> | No | <code>number</code> | <code>4</code> | Specify the number of rows |
|
||||
|
|
|
@ -12466,8 +12466,8 @@
|
|||
{
|
||||
"name": "value",
|
||||
"kind": "let",
|
||||
"description": "Specify the textarea value",
|
||||
"type": "string",
|
||||
"description": "Specify the textarea value.",
|
||||
"type": "null | string",
|
||||
"value": "\"\"",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<script>
|
||||
/** Specify the textarea value */
|
||||
/**
|
||||
* Specify the textarea value.
|
||||
* @type {null | string}
|
||||
*/
|
||||
export let value = "";
|
||||
|
||||
/** Specify the placeholder text */
|
||||
|
|
4
types/TextArea/TextArea.svelte.d.ts
vendored
4
types/TextArea/TextArea.svelte.d.ts
vendored
|
@ -5,10 +5,10 @@ type RestProps = SvelteHTMLElements["textarea"];
|
|||
|
||||
export interface TextAreaProps extends RestProps {
|
||||
/**
|
||||
* Specify the textarea value
|
||||
* Specify the textarea value.
|
||||
* @default ""
|
||||
*/
|
||||
value?: string;
|
||||
value?: null | string;
|
||||
|
||||
/**
|
||||
* Specify the placeholder text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue