Skip to content

Commit 44a9ef5

Browse files
shleewhiteshleewhite
andauthored
Dropdown: add @id argument to DropdownListItemCheckbox and DropdownListItemRadio (#3371)
Co-authored-by: shleewhite <[email protected]>
1 parent 632eda8 commit 44a9ef5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.changeset/blue-cloths-laugh.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@hashicorp/design-system-components": patch
3+
---
4+
5+
<!-- START components/dropdown -->
6+
`Dropdown` - Updated component signature for `ListItemCheckbox` and `ListItemRadio` to have an optional `@id` argument.
7+
<!-- END -->

packages/components/src/components/hds/dropdown/list-item/checkbox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface HdsDropdownListItemCheckboxSignature {
1212
Args: HdsFormCheckboxBaseSignature['Args'] & {
1313
count?: string | number;
1414
icon?: HdsIconSignature['Args']['name'];
15+
id?: string;
1516
};
1617
Blocks: {
1718
default: [];

packages/components/src/components/hds/dropdown/list-item/radio.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface HdsDropdownListItemRadioSignature {
1212
Args: HdsFormRadioBaseSignature['Args'] & {
1313
count?: string | number;
1414
icon?: HdsIconSignature['Args']['name'];
15+
id?: string;
1516
};
1617
Blocks: {
1718
default: [];

0 commit comments

Comments
 (0)