-
Notifications
You must be signed in to change notification settings - Fork 427
/
Copy pathradio-button-group.d.ts
53 lines (52 loc) · 1.34 KB
/
radio-button-group.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
declare module '@salesforce/design-system-react/components/radio-button-group' {
import React from 'react';
type Props = {
/**
* **Assistive text for accessibility**
* * `label`: This label appears in the legend.
*/
assistiveText?: Partial<{
label?: string;
}>;
/**
* Children are expected to be Radio components.
*/
children: React.ReactNode /*.isRequired*/;
/**
* Custom CSS classes added to `slds-radio_button-group` node.
*/
className?: any[] | Record<string, any> | string;
/**
* **Text labels for internationalization**
* This object is merged with the default props object on every render.
* * `error`: Message to display when any of Checkboxes are in an error state.
* * `label`: This label appears above the button group.
*/
labels?: Partial<{
error?: string;
label?: string;
}>;
/**
* This event fires when the radio selection changes.
*/
onChange?: (v: any) => any;
/**
* Disable all radio inputs.
*/
disabled?: boolean;
/**
* Adds an indicator that this field is required.
*/
required?: boolean;
/**
* The name of this radio group.
*/
name?: string;
/**
* The ID of the error message, for linking to radio inputs with aria-describedby.
*/
errorId?: string;
};
function Component(props: Props): JSX.Element;
export default Component;
}