mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5176 - variant added
This commit is contained in:
parent
d43ea02957
commit
ff22cfe15e
45 changed files with 182 additions and 22 deletions
|
@ -11,6 +11,10 @@ export default {
|
|||
invalid: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
variant: {
|
||||
type: String,
|
||||
default: 'outlined'
|
||||
}
|
||||
},
|
||||
style: TextareaStyle,
|
||||
|
|
5
components/lib/textarea/Textarea.d.ts
vendored
5
components/lib/textarea/Textarea.d.ts
vendored
|
@ -102,6 +102,11 @@ export interface TextareaProps extends TextareaHTMLAttributes {
|
|||
* @defaultValue false
|
||||
*/
|
||||
invalid?: boolean | undefined;
|
||||
/**
|
||||
* Specifies the input variant of the component.
|
||||
* @defaultValue outlined
|
||||
*/
|
||||
variant?: 'outlined' | 'filled' | undefined;
|
||||
/**
|
||||
* Used to pass attributes to DOM elements inside the component.
|
||||
* @type {TextareaPassThroughOptions}
|
||||
|
|
|
@ -19,7 +19,8 @@ const classes = {
|
|||
{
|
||||
'p-filled': instance.filled,
|
||||
'p-inputtextarea-resizable ': props.autoResize,
|
||||
'p-invalid': props.invalid
|
||||
'p-invalid': props.invalid,
|
||||
'p-variant': props.variant === 'filled'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue