mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
feat(text-input): support read-only variant
This commit is contained in:
parent
008b10c852
commit
4aceb6c95a
5 changed files with 36 additions and 5 deletions
8
types/TextInput/TextInput.d.ts
vendored
8
types/TextInput/TextInput.d.ts
vendored
|
@ -104,10 +104,16 @@ export interface TextInputProps
|
|||
required?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use inline version
|
||||
* Set to `true` to use the inline variant
|
||||
* @default false
|
||||
*/
|
||||
inline?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use the read-only variant
|
||||
* @default false
|
||||
*/
|
||||
readonly?: boolean;
|
||||
}
|
||||
|
||||
export default class TextInput extends SvelteComponentTyped<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue