fix(radio-button-group): add name and required props (#1037)

Fixes #1036
This commit is contained in:
brunnerh 2023-10-01 19:14:53 +02:00 committed by GitHub
commit 24e2a8874f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 98 additions and 36 deletions

View file

@ -54,7 +54,7 @@ export interface RadioButtonProps extends RestProps {
/**
* Specify a name attribute for the radio button input
* @default ""
* @default undefined
*/
name?: string;

View file

@ -16,6 +16,18 @@ export interface RadioButtonGroupProps extends RestProps {
*/
disabled?: boolean;
/**
* Set to `true` to require the selection of a radio button
* @default undefined
*/
required?: boolean;
/**
* Specify a name attribute for the radio button inputs
* @default undefined
*/
name?: string;
/**
* Specify the legend text
* @default ""

View file

@ -30,6 +30,7 @@ export interface HeaderProps extends RestProps {
/**
* Specify the company name.
*
* Alternatively, use the named slot "company" (e.g., `<span slot="company">...</span>`)
* @default undefined
*/