@abgov/react-components 8.0.0-dev.4 → 8.0.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,7 +19,7 @@ export interface GoabDropdownItemProps {
|
|
|
19
19
|
value: string;
|
|
20
20
|
/** Display label for the dropdown item. */
|
|
21
21
|
label?: string;
|
|
22
|
-
/**
|
|
22
|
+
/** Additional text used to match this item in typeahead search, alongside the label. Defaults to the content's text. */
|
|
23
23
|
filter?: string;
|
|
24
24
|
/** Sets a data-testid attribute for automated testing. */
|
|
25
25
|
testId?: string;
|
|
@@ -34,7 +34,7 @@ declare module "react" {
|
|
|
34
34
|
export interface GoabDropdownProps extends Margins, DataAttributes {
|
|
35
35
|
/** Identifier for the dropdown. If omitted, a unique name is generated. */
|
|
36
36
|
name?: string;
|
|
37
|
-
/** The
|
|
37
|
+
/** The value of the selected item. */
|
|
38
38
|
value?: string[] | string;
|
|
39
39
|
/** Callback fired when the selected value changes. */
|
|
40
40
|
onChange?: (detail: GoabDropdownOnChangeDetail) => void;
|
|
@@ -19,6 +19,7 @@ interface GoALinkButtonProps extends Margins, DataAttributes {
|
|
|
19
19
|
leadingIcon?: GoabIconType;
|
|
20
20
|
/** @deprecated Use GoabButton instead. Icon displayed after the button text. */
|
|
21
21
|
trailingIcon?: GoabIconType;
|
|
22
|
+
/** Content rendered inside the link button. */
|
|
22
23
|
children: ReactNode;
|
|
23
24
|
}
|
|
24
25
|
export declare function GoALinkButton({ type, children, ...rest }: GoALinkButtonProps): import("react/jsx-runtime").JSX.Element;
|