mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(tile-group): add name
and required
props (#1818)
This commit is contained in:
parent
5ef4dc1a72
commit
836b360b9b
11 changed files with 127 additions and 45 deletions
10
types/Tile/RadioTile.svelte.d.ts
vendored
10
types/Tile/RadioTile.svelte.d.ts
vendored
|
@ -22,6 +22,12 @@ export interface RadioTileProps extends RestProps {
|
|||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to mark the field as required
|
||||
* @default false
|
||||
*/
|
||||
required?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the value of the radio input
|
||||
* @default ""
|
||||
|
@ -47,8 +53,8 @@ export interface RadioTileProps extends RestProps {
|
|||
id?: string;
|
||||
|
||||
/**
|
||||
* Specify a name attribute for the input
|
||||
* @default ""
|
||||
* Specify a name attribute for the radio tile input
|
||||
* @default undefined
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
|
|
12
types/Tile/TileGroup.svelte.d.ts
vendored
12
types/Tile/TileGroup.svelte.d.ts
vendored
|
@ -16,6 +16,18 @@ export interface TileGroupProps 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 ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue