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
|
@ -13,6 +13,10 @@ export default {
|
|||
type: String,
|
||||
default: null
|
||||
},
|
||||
variant: {
|
||||
type: String,
|
||||
default: 'outlined'
|
||||
},
|
||||
invalid: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
|
|
5
components/lib/radiobutton/RadioButton.d.ts
vendored
5
components/lib/radiobutton/RadioButton.d.ts
vendored
|
@ -120,6 +120,11 @@ export interface RadioButtonProps {
|
|||
* @defaultValue false
|
||||
*/
|
||||
disabled?: boolean | undefined;
|
||||
/**
|
||||
* Specifies the input variant of the component.
|
||||
* @defaultValue outlined
|
||||
*/
|
||||
variant?: 'outlined' | 'filled' | undefined;
|
||||
/**
|
||||
* When present, it specifies that an input field is read-only.
|
||||
* @default false
|
||||
|
|
|
@ -40,7 +40,8 @@ const classes = {
|
|||
{
|
||||
'p-highlight': instance.checked,
|
||||
'p-disabled': props.disabled,
|
||||
'p-invalid': props.invalid
|
||||
'p-invalid': props.invalid,
|
||||
'p-variant': props.variant === 'filled'
|
||||
}
|
||||
],
|
||||
box: 'p-radiobutton-box',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue