@aurodesignsystem/auro-formkit 5.9.0 → 5.9.2
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.
- package/CHANGELOG.md +13 -4
- package/README.md +4 -4
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +62 -62
- package/components/checkbox/demo/api.js +1 -1
- package/components/checkbox/demo/api.md +127 -84
- package/components/checkbox/demo/api.min.js +125 -42
- package/components/checkbox/demo/index.md +9 -281
- package/components/checkbox/demo/index.min.js +125 -42
- package/components/checkbox/demo/readme.html +3 -4
- package/components/checkbox/demo/readme.md +62 -62
- package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
- package/components/checkbox/dist/index.js +125 -42
- package/components/checkbox/dist/registered.js +125 -42
- package/components/combobox/README.md +76 -74
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +11 -12
- package/components/combobox/demo/api.md +1302 -875
- package/components/combobox/demo/api.min.js +416 -492
- package/components/combobox/demo/index.html +1 -7
- package/components/combobox/demo/index.js +0 -19
- package/components/combobox/demo/index.md +43 -723
- package/components/combobox/demo/index.min.js +369 -302
- package/components/combobox/demo/readme.html +3 -4
- package/components/combobox/demo/readme.md +76 -74
- package/components/combobox/dist/auro-combobox.d.ts +42 -42
- package/components/combobox/dist/index.js +204 -210
- package/components/combobox/dist/registered.js +204 -210
- package/components/counter/README.md +81 -66
- package/components/counter/demo/api.html +1 -2
- package/components/counter/demo/api.js +2 -2
- package/components/counter/demo/api.md +777 -259
- package/components/counter/demo/api.min.js +119 -171
- package/components/counter/demo/index.html +0 -2
- package/components/counter/demo/index.md +20 -329
- package/components/counter/demo/index.min.js +117 -152
- package/components/counter/demo/readme.html +3 -4
- package/components/counter/demo/readme.md +81 -66
- package/components/counter/dist/auro-counter-group.d.ts +21 -36
- package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
- package/components/counter/dist/auro-counter.d.ts +5 -8
- package/components/counter/dist/index.js +117 -152
- package/components/counter/dist/registered.js +117 -152
- package/components/datepicker/README.md +57 -61
- package/components/datepicker/demo/api.js +8 -8
- package/components/datepicker/demo/api.md +720 -561
- package/components/datepicker/demo/api.min.js +678 -2769
- package/components/datepicker/demo/index.md +65 -117
- package/components/datepicker/demo/index.min.js +678 -2769
- package/components/datepicker/demo/readme.html +3 -4
- package/components/datepicker/demo/readme.md +57 -61
- package/components/datepicker/dist/auro-calendar.d.ts +60 -34
- package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +505 -2596
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +505 -2596
- package/components/dropdown/README.md +78 -62
- package/components/dropdown/demo/api.js +4 -4
- package/components/dropdown/demo/api.md +520 -478
- package/components/dropdown/demo/api.min.js +80 -95
- package/components/dropdown/demo/index.md +65 -119
- package/components/dropdown/demo/index.min.js +70 -85
- package/components/dropdown/demo/readme.html +3 -4
- package/components/dropdown/demo/readme.md +78 -62
- package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +70 -85
- package/components/dropdown/dist/registered.js +70 -85
- package/components/form/README.md +16 -58
- package/components/form/demo/api.md +16 -21
- package/components/form/demo/api.min.js +13 -8
- package/components/form/demo/index.md +38 -39
- package/components/form/demo/index.min.js +13 -8
- package/components/form/demo/readme.md +16 -58
- package/components/form/demo/working.html +1 -1
- package/components/form/dist/auro-form.d.ts +15 -3
- package/components/form/dist/index.js +13 -8
- package/components/form/dist/registered.js +13 -8
- package/components/input/README.md +55 -60
- package/components/input/demo/api.js +3 -5
- package/components/input/demo/api.md +558 -537
- package/components/input/demo/api.min.js +102 -115
- package/components/input/demo/index.js +0 -1
- package/components/input/demo/index.md +90 -203
- package/components/input/demo/index.min.js +87 -99
- package/components/input/demo/readme.html +3 -4
- package/components/input/demo/readme.md +55 -60
- package/components/input/dist/auro-input.d.ts +6 -5
- package/components/input/dist/base-input.d.ts +68 -69
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +87 -82
- package/components/input/dist/registered.js +87 -82
- package/components/menu/README.md +61 -61
- package/components/menu/demo/api.js +6 -8
- package/components/menu/demo/api.md +520 -577
- package/components/menu/demo/api.min.js +199 -97
- package/components/menu/demo/index.js +0 -5
- package/components/menu/demo/index.md +36 -119
- package/components/menu/demo/index.min.js +164 -101
- package/components/menu/demo/readme.html +3 -4
- package/components/menu/demo/readme.md +61 -61
- package/components/menu/dist/auro-menu.context.d.ts +5 -0
- package/components/menu/dist/auro-menu.d.ts +75 -37
- package/components/menu/dist/auro-menuoption.d.ts +38 -13
- package/components/menu/dist/index.js +164 -50
- package/components/menu/dist/registered.js +164 -50
- package/components/radio/README.md +61 -57
- package/components/radio/demo/api.js +2 -2
- package/components/radio/demo/api.md +241 -170
- package/components/radio/demo/api.min.js +154 -77
- package/components/radio/demo/index.md +22 -99
- package/components/radio/demo/index.min.js +145 -68
- package/components/radio/demo/readme.html +3 -4
- package/components/radio/demo/readme.md +61 -57
- package/components/radio/dist/auro-radio-group.d.ts +67 -35
- package/components/radio/dist/auro-radio.d.ts +56 -33
- package/components/radio/dist/index.js +145 -68
- package/components/radio/dist/registered.js +145 -68
- package/components/select/README.md +68 -65
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +7 -7
- package/components/select/demo/api.md +1305 -625
- package/components/select/demo/api.min.js +357 -262
- package/components/select/demo/index.html +0 -2
- package/components/select/demo/index.md +25 -833
- package/components/select/demo/index.min.js +356 -230
- package/components/select/demo/readme.html +3 -4
- package/components/select/demo/readme.md +68 -65
- package/components/select/dist/auro-select.d.ts +99 -90
- package/components/select/dist/index.js +192 -180
- package/components/select/dist/registered.js +192 -180
- package/package.json +9 -4
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/api.md) -->
|
|
2
2
|
<!-- The below content is automatically added from ./../docs/api.md -->
|
|
3
3
|
|
|
4
|
-
# auro-radio-group
|
|
4
|
+
# auro-radio-group
|
|
5
|
+
|
|
6
|
+
The `auro-radio-group` element is used to group a set `auro-radio` elements.
|
|
5
7
|
|
|
6
8
|
## Properties
|
|
7
9
|
|
|
8
|
-
| Property | Attribute | Type
|
|
9
|
-
|
|
10
|
-
| [appearance](#appearance) | `appearance` | `
|
|
11
|
-
| [disabled](#disabled) | `disabled` | `boolean`
|
|
12
|
-
| [error](#error) | `error` | `
|
|
13
|
-
| [horizontal](#horizontal) | `horizontal` | `boolean`
|
|
14
|
-
| [noValidate](#noValidate) | `noValidate` | `
|
|
15
|
-
| [onDark](#onDark) | `onDark` | `
|
|
16
|
-
| [optionSelected](#optionSelected) | `optionSelected` | `
|
|
17
|
-
| [required](#required) | `required` | `
|
|
18
|
-
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `
|
|
19
|
-
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `
|
|
20
|
-
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `
|
|
21
|
-
| [validity](#validity) | `validity` | `
|
|
22
|
-
| [value](#value) | `value` | `string`
|
|
10
|
+
| Property | Attribute | Type | Default | Description |
|
|
11
|
+
|---------------------------------|---------------------------------|--------------------------|-------------|--------------------------------------------------|
|
|
12
|
+
| [appearance](#appearance) | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
13
|
+
| [disabled](#disabled) | `disabled` | `boolean` | | If true, all radio buttons will be disabled. |
|
|
14
|
+
| [error](#error) | `error` | `string` | | If true, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
15
|
+
| [horizontal](#horizontal) | `horizontal` | `boolean` | | If true, displays radio buttons horizontally. |
|
|
16
|
+
| [noValidate](#noValidate) | `noValidate` | `boolean` | | If true, disables auto-validation on blur. |
|
|
17
|
+
| [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
18
|
+
| [optionSelected](#optionSelected) | `optionSelected` | `object` | | Specifies the current selected radio button. |
|
|
19
|
+
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
20
|
+
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
21
|
+
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
22
|
+
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
23
|
+
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
24
|
+
| [value](#value) | `value` | `string` | | Specifies the current value of the selected radio button. |
|
|
23
25
|
|
|
24
26
|
## Methods
|
|
25
27
|
|
|
@@ -49,22 +51,24 @@
|
|
|
49
51
|
|---------------|--------------------------------------------------|
|
|
50
52
|
| `radio-group` | Apply css to the fieldset element in the shadow DOM |
|
|
51
53
|
|
|
52
|
-
# auro-radio
|
|
54
|
+
# auro-radio
|
|
55
|
+
|
|
56
|
+
The `auro-radio` element is used to a button that allows the user to select one option from a set.
|
|
53
57
|
|
|
54
58
|
## Properties
|
|
55
59
|
|
|
56
|
-
| Property | Attribute | Type
|
|
57
|
-
|
|
58
|
-
| [appearance](#appearance) | `appearance` | `
|
|
59
|
-
| [checked](#checked) | `checked` | `
|
|
60
|
-
| [disabled](#disabled) | `disabled` | `
|
|
61
|
-
| [error](#error) | `error` | `
|
|
62
|
-
| [id](#id) | `id` | `string`
|
|
63
|
-
| [label](#label) | `label` | `string`
|
|
64
|
-
| [name](#name) | `name` | `string`
|
|
65
|
-
| [onDark](#onDark) | `onDark` | `
|
|
66
|
-
| [required](#required) | `required` | `
|
|
67
|
-
| [value](#value) | `value` | `string`
|
|
60
|
+
| Property | Attribute | Type | Default | Description |
|
|
61
|
+
|--------------|--------------|--------------------------|-------------|--------------------------------------------------|
|
|
62
|
+
| [appearance](#appearance) | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
63
|
+
| [checked](#checked) | `checked` | `boolean` | | If set to true, the radio button will be filled. |
|
|
64
|
+
| [disabled](#disabled) | `disabled` | `boolean` | | If set to true, the radio button will be non-clickable. |
|
|
65
|
+
| [error](#error) | `error` | `boolean` | | If set to true, sets an error state on the radio button. |
|
|
66
|
+
| [id](#id) | `id` | `string` | | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
|
|
67
|
+
| [label](#label) | `label` | `string` | | Label for the radio button. |
|
|
68
|
+
| [name](#name) | `name` | `string` | | Name for the radio button group. |
|
|
69
|
+
| [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
70
|
+
| [required](#required) | `required` | `boolean` | | Defines element as required. |
|
|
71
|
+
| [value](#value) | `value` | `string` | | The value of the radio button. |
|
|
68
72
|
|
|
69
73
|
## Methods
|
|
70
74
|
|
|
@@ -93,48 +97,30 @@
|
|
|
93
97
|
| `radio-label` | apply css to a specific checkbox's label. |
|
|
94
98
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
95
99
|
|
|
96
|
-
##
|
|
97
|
-
|
|
98
|
-
### Default
|
|
99
|
-
|
|
100
|
-
The following example illustrates the default use of the `<auro-radio>` custom element.
|
|
100
|
+
## Basic Radio
|
|
101
101
|
|
|
102
102
|
<div class="exampleWrapper">
|
|
103
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
104
|
-
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
103
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-standalone.html) -->
|
|
104
|
+
<!-- The below content is automatically added from ./../apiExamples/basic-standalone.html -->
|
|
105
105
|
<auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
106
106
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
107
107
|
</div>
|
|
108
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
109
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
|
|
110
|
-
<!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
|
|
111
|
-
<auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" appearance="inverse"></auro-radio>
|
|
112
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
|
-
</div>
|
|
114
108
|
<auro-accordion alignRight>
|
|
115
109
|
<span slot="trigger">See code</span>
|
|
116
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
117
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
110
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-standalone.html) -->
|
|
111
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic-standalone.html -->
|
|
118
112
|
|
|
119
113
|
```html
|
|
120
114
|
<auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
121
115
|
```
|
|
122
116
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
123
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
124
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
|
|
125
|
-
<!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
|
|
126
|
-
<auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" appearance="inverse"></auro-radio>
|
|
127
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
128
|
-
</div>
|
|
129
117
|
</auro-accordion>
|
|
130
118
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
This is a default configuration using the `<auro-radio-group>` and `<auro-radio>` elements. Notice the use of the `slot` attribute to set the group title of the `<auro-radio-group>`.
|
|
119
|
+
## Basic Radio Group
|
|
134
120
|
|
|
135
121
|
<div class="exampleWrapper">
|
|
136
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
137
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
122
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
123
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
138
124
|
<auro-radio-group>
|
|
139
125
|
<span slot="legend">Form label goes here</span>
|
|
140
126
|
<auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
@@ -143,39 +129,69 @@ This is a default configuration using the `<auro-radio-group>` and `<auro-radio>
|
|
|
143
129
|
</auro-radio-group>
|
|
144
130
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
145
131
|
</div>
|
|
146
|
-
<
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
132
|
+
<auro-accordion alignRight>
|
|
133
|
+
<span slot="trigger">See code</span>
|
|
134
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
135
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
136
|
+
|
|
137
|
+
```html
|
|
138
|
+
<auro-radio-group>
|
|
139
|
+
<span slot="legend">Form label goes here</span>
|
|
140
|
+
<auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
141
|
+
<auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
142
|
+
<auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
143
|
+
</auro-radio-group>
|
|
144
|
+
```
|
|
145
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
146
|
+
</auro-accordion>
|
|
147
|
+
|
|
148
|
+
## Property & Attribute Examples
|
|
149
|
+
|
|
150
|
+
### Appearance on Dark Backgrounds
|
|
151
|
+
|
|
152
|
+
Use the `appearance="inverse"` attribute to render the radio for use on dark backgrounds.
|
|
153
|
+
|
|
154
|
+
<div class="exampleWrapper--ondark">
|
|
155
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
156
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
157
|
+
<auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" appearance="inverse"></auro-radio>
|
|
155
158
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
156
159
|
</div>
|
|
157
160
|
<auro-accordion alignRight>
|
|
158
161
|
<span slot="trigger">See code</span>
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
<!--
|
|
170
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceGroup.html) -->
|
|
171
|
-
<!-- The below content is automatically added from ./../apiExamples/inverseAppearanceGroup.html -->
|
|
162
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse.html) -->
|
|
163
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
164
|
+
|
|
165
|
+
```html
|
|
166
|
+
<auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" appearance="inverse"></auro-radio>
|
|
167
|
+
```
|
|
168
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
169
|
+
</auro-accordion>
|
|
170
|
+
<div class="exampleWrapper--ondark">
|
|
171
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-group.html) -->
|
|
172
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-group.html -->
|
|
172
173
|
<auro-radio-group appearance="inverse">
|
|
173
174
|
<span slot="legend">Form label goes here</span>
|
|
174
175
|
<auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
175
176
|
<auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
176
177
|
<auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
177
178
|
</auro-radio-group>
|
|
178
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
179
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
180
|
+
</div>
|
|
181
|
+
<auro-accordion alignRight>
|
|
182
|
+
<span slot="trigger">See code</span>
|
|
183
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-group.html) -->
|
|
184
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-group.html -->
|
|
185
|
+
|
|
186
|
+
```html
|
|
187
|
+
<auro-radio-group appearance="inverse">
|
|
188
|
+
<span slot="legend">Form label goes here</span>
|
|
189
|
+
<auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
190
|
+
<auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
191
|
+
<auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
192
|
+
</auro-radio-group>
|
|
193
|
+
```
|
|
194
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
179
195
|
</auro-accordion>
|
|
180
196
|
|
|
181
197
|
### Checked
|
|
@@ -193,32 +209,33 @@ Use the `checked` attribute to pre-select a `<auro-radio>` element.
|
|
|
193
209
|
</auro-radio-group>
|
|
194
210
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
195
211
|
</div>
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
<!--
|
|
199
|
-
|
|
212
|
+
<auro-accordion alignRight>
|
|
213
|
+
<span slot="trigger">See code</span>
|
|
214
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/checked.html) -->
|
|
215
|
+
<!-- The below content is automatically added from ./../apiExamples/checked.html -->
|
|
216
|
+
<auro-radio-group>
|
|
200
217
|
<span slot="legend">Form label goes here</span>
|
|
201
218
|
<auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
|
|
202
219
|
<auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
|
|
203
220
|
<auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
|
|
204
221
|
</auro-radio-group>
|
|
205
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
206
|
-
</
|
|
207
|
-
<
|
|
208
|
-
|
|
209
|
-
<!--
|
|
210
|
-
|
|
211
|
-
```html
|
|
212
|
-
<auro-radio-group>
|
|
222
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
223
|
+
</auro-accordion>
|
|
224
|
+
<div class="exampleWrapper--ondark">
|
|
225
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-checked.html) -->
|
|
226
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-checked.html -->
|
|
227
|
+
<auro-radio-group appearance="inverse">
|
|
213
228
|
<span slot="legend">Form label goes here</span>
|
|
214
229
|
<auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
|
|
215
230
|
<auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
|
|
216
231
|
<auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
|
|
217
232
|
</auro-radio-group>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
233
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
234
|
+
</div>
|
|
235
|
+
<auro-accordion alignRight>
|
|
236
|
+
<span slot="trigger">See code</span>
|
|
237
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-checked.html) -->
|
|
238
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-checked.html -->
|
|
222
239
|
<auro-radio-group appearance="inverse">
|
|
223
240
|
<span slot="legend">Form label goes here</span>
|
|
224
241
|
<auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
|
|
@@ -249,44 +266,47 @@ Use the `disabled` attribute to disable singular `<auro-radio>` elements or the
|
|
|
249
266
|
</auro-radio-group>
|
|
250
267
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
251
268
|
</div>
|
|
252
|
-
<
|
|
253
|
-
|
|
254
|
-
<!--
|
|
255
|
-
|
|
269
|
+
<auro-accordion alignRight>
|
|
270
|
+
<span slot="trigger">See code</span>
|
|
271
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
|
|
272
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
|
|
273
|
+
```html
|
|
274
|
+
<auro-radio-group>
|
|
256
275
|
<span slot="legend">Form label goes here</span>
|
|
257
276
|
<auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
258
277
|
<auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
|
|
259
278
|
<auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
260
279
|
</auro-radio-group>
|
|
261
|
-
<auro-radio-group
|
|
280
|
+
<auro-radio-group disabled>
|
|
262
281
|
<span slot="legend">Form label goes here</span>
|
|
263
282
|
<auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
264
283
|
<auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
|
|
265
284
|
<auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
266
285
|
</auro-radio-group>
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
<!-- AURO-GENERATED-CONTENT:START (
|
|
272
|
-
<!-- The below
|
|
273
|
-
|
|
274
|
-
<auro-radio-group>
|
|
286
|
+
```
|
|
287
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
288
|
+
</auro-accordion>
|
|
289
|
+
<div class="exampleWrapper--ondark">
|
|
290
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
291
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
292
|
+
<auro-radio-group appearance="inverse">
|
|
275
293
|
<span slot="legend">Form label goes here</span>
|
|
276
294
|
<auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
277
295
|
<auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
|
|
278
296
|
<auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
279
297
|
</auro-radio-group>
|
|
280
|
-
<auro-radio-group disabled>
|
|
298
|
+
<auro-radio-group appearance="inverse" disabled>
|
|
281
299
|
<span slot="legend">Form label goes here</span>
|
|
282
300
|
<auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
283
301
|
<auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
|
|
284
302
|
<auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
285
303
|
</auro-radio-group>
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
304
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
305
|
+
</div>
|
|
306
|
+
<auro-accordion alignRight>
|
|
307
|
+
<span slot="trigger">See code</span>
|
|
308
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
309
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
290
310
|
<auro-radio-group appearance="inverse">
|
|
291
311
|
<span slot="legend">Form label goes here</span>
|
|
292
312
|
<auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
@@ -319,17 +339,6 @@ A custom error message can be set using the `error` attribute, or it can be used
|
|
|
319
339
|
</auro-radio-group>
|
|
320
340
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
321
341
|
</div>
|
|
322
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
323
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceError.html) -->
|
|
324
|
-
<!-- The below content is automatically added from ./../apiExamples/inverseAppearanceError.html -->
|
|
325
|
-
<auro-radio-group appearance="inverse" error="There is an error with this form entry">
|
|
326
|
-
<span slot="legend">Form label goes here</span>
|
|
327
|
-
<auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
328
|
-
<auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
329
|
-
<auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
330
|
-
</auro-radio-group>
|
|
331
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
332
|
-
</div>
|
|
333
342
|
<auro-accordion alignRight>
|
|
334
343
|
<span slot="trigger">See code</span>
|
|
335
344
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
|
|
@@ -343,8 +352,22 @@ A custom error message can be set using the `error` attribute, or it can be used
|
|
|
343
352
|
</auro-radio-group>
|
|
344
353
|
```
|
|
345
354
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
346
|
-
|
|
347
|
-
|
|
355
|
+
</auro-accordion>
|
|
356
|
+
<div class="exampleWrapper--ondark">
|
|
357
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
358
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
359
|
+
<auro-radio-group appearance="inverse" error="There is an error with this form entry">
|
|
360
|
+
<span slot="legend">Form label goes here</span>
|
|
361
|
+
<auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
362
|
+
<auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
363
|
+
<auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
364
|
+
</auro-radio-group>
|
|
365
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
366
|
+
</div>
|
|
367
|
+
<auro-accordion alignRight>
|
|
368
|
+
<span slot="trigger">See code</span>
|
|
369
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
370
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
348
371
|
<auro-radio-group appearance="inverse" error="There is an error with this form entry">
|
|
349
372
|
<span slot="legend">Form label goes here</span>
|
|
350
373
|
<auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
@@ -418,46 +441,15 @@ When present, the `required` attribute specifies that an `<auro-radio>` within t
|
|
|
418
441
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
419
442
|
</auro-accordion>
|
|
420
443
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
The `<auro-radio-group>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
|
|
424
|
-
|
|
425
|
-
<div class="exampleWrapper">
|
|
426
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optionalLabel.html) -->
|
|
427
|
-
<!-- The below content is automatically added from ./../apiExamples/optionalLabel.html -->
|
|
428
|
-
<auro-radio-group>
|
|
429
|
-
<span slot="legend">Form label goes here</span>
|
|
430
|
-
<span slot="optionalLabel">(add custom label here)</span>
|
|
431
|
-
<auro-radio id="labelRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
432
|
-
<auro-radio id="labelRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
433
|
-
<auro-radio id="labelRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
434
|
-
</auro-radio-group>
|
|
435
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
436
|
-
</div>
|
|
437
|
-
<auro-accordion alignRight>
|
|
438
|
-
<span slot="trigger">See code</span>
|
|
439
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optionalLabel.html) -->
|
|
440
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/optionalLabel.html -->
|
|
441
|
-
|
|
442
|
-
```html
|
|
443
|
-
<auro-radio-group>
|
|
444
|
-
<span slot="legend">Form label goes here</span>
|
|
445
|
-
<span slot="optionalLabel">(add custom label here)</span>
|
|
446
|
-
<auro-radio id="labelRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
447
|
-
<auro-radio id="labelRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
448
|
-
<auro-radio id="labelRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
449
|
-
</auro-radio-group>
|
|
450
|
-
```
|
|
451
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
452
|
-
</auro-accordion>
|
|
444
|
+
## Method Examples
|
|
453
445
|
|
|
454
446
|
### Reset State
|
|
455
447
|
|
|
456
448
|
Use the `reset()` method to reset the `<auro-radio-group>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
|
|
457
449
|
|
|
458
450
|
<div class="exampleWrapper">
|
|
459
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
460
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
451
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reset-state.html) -->
|
|
452
|
+
<!-- The below content is automatically added from ./../apiExamples/reset-state.html -->
|
|
461
453
|
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
462
454
|
<br/><br/>
|
|
463
455
|
<auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
|
|
@@ -470,8 +462,8 @@ Use the `reset()` method to reset the `<auro-radio-group>`'s `value` and `validi
|
|
|
470
462
|
</div>
|
|
471
463
|
<auro-accordion alignRight>
|
|
472
464
|
<span slot="trigger">See code</span>
|
|
473
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
474
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
465
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reset-state.html) -->
|
|
466
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/reset-state.html -->
|
|
475
467
|
|
|
476
468
|
```html
|
|
477
469
|
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
@@ -484,8 +476,8 @@ Use the `reset()` method to reset the `<auro-radio-group>`'s `value` and `validi
|
|
|
484
476
|
</auro-radio-group>
|
|
485
477
|
```
|
|
486
478
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
487
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
488
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
479
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reset-state.js) -->
|
|
480
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/reset-state.js -->
|
|
489
481
|
|
|
490
482
|
```js
|
|
491
483
|
export function resetStateExample() {
|
|
@@ -499,6 +491,43 @@ export function resetStateExample() {
|
|
|
499
491
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
500
492
|
</auro-accordion>
|
|
501
493
|
|
|
494
|
+
## Slot Examples
|
|
495
|
+
|
|
496
|
+
### Optional Label
|
|
497
|
+
|
|
498
|
+
The `<auro-radio-group>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
|
|
499
|
+
|
|
500
|
+
<div class="exampleWrapper">
|
|
501
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optional-label.html) -->
|
|
502
|
+
<!-- The below content is automatically added from ./../apiExamples/optional-label.html -->
|
|
503
|
+
<auro-radio-group>
|
|
504
|
+
<span slot="legend">Form label goes here</span>
|
|
505
|
+
<span slot="optionalLabel">(add custom label here)</span>
|
|
506
|
+
<auro-radio id="labelRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
507
|
+
<auro-radio id="labelRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
508
|
+
<auro-radio id="labelRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
509
|
+
</auro-radio-group>
|
|
510
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
511
|
+
</div>
|
|
512
|
+
<auro-accordion alignRight>
|
|
513
|
+
<span slot="trigger">See code</span>
|
|
514
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optional-label.html) -->
|
|
515
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/optional-label.html -->
|
|
516
|
+
|
|
517
|
+
```html
|
|
518
|
+
<auro-radio-group>
|
|
519
|
+
<span slot="legend">Form label goes here</span>
|
|
520
|
+
<span slot="optionalLabel">(add custom label here)</span>
|
|
521
|
+
<auro-radio id="labelRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
522
|
+
<auro-radio id="labelRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
523
|
+
<auro-radio id="labelRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
524
|
+
</auro-radio-group>
|
|
525
|
+
```
|
|
526
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
527
|
+
</auro-accordion>
|
|
528
|
+
|
|
529
|
+
## Common Usage Patterns & Functional Examples
|
|
530
|
+
|
|
502
531
|
### Dynamic Example
|
|
503
532
|
|
|
504
533
|
This example demonstrates a data drive approach to rendering `<auro-radio>` buttons.
|
|
@@ -548,13 +577,13 @@ export function dynamicExample() {
|
|
|
548
577
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
549
578
|
</auro-accordion>
|
|
550
579
|
|
|
551
|
-
|
|
580
|
+
### Multiline Label
|
|
552
581
|
|
|
553
582
|
Example to show text wrapping on multiline labels.
|
|
554
583
|
|
|
555
584
|
<div class="exampleWrapper">
|
|
556
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
557
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
585
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/multiline-group.html) -->
|
|
586
|
+
<!-- The below content is automatically added from ./../apiExamples/multiline-group.html -->
|
|
558
587
|
<auro-radio-group>
|
|
559
588
|
<span slot="legend">Form label goes here</span>
|
|
560
589
|
<auro-radio id="basicGroupRadio1" label="Sample text" name="radioDemo" value="option1"></auro-radio>
|
|
@@ -565,8 +594,8 @@ Example to show text wrapping on multiline labels.
|
|
|
565
594
|
</div>
|
|
566
595
|
<auro-accordion alignRight>
|
|
567
596
|
<span slot="trigger">See code</span>
|
|
568
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
569
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
597
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/multiline-group.html) -->
|
|
598
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/multiline-group.html -->
|
|
570
599
|
|
|
571
600
|
```html
|
|
572
601
|
<auro-radio-group>
|
|
@@ -579,9 +608,51 @@ Example to show text wrapping on multiline labels.
|
|
|
579
608
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
580
609
|
</auro-accordion>
|
|
581
610
|
|
|
582
|
-
|
|
611
|
+
### Accordion Nested Group
|
|
612
|
+
|
|
613
|
+
This example shows how to use `<auro-accordion>` with the `<auro-radio-group>` and `<auro-radio>` elements for
|
|
614
|
+
nested/optional groups (such as a "More Options" section in a payment processor).
|
|
615
|
+
|
|
616
|
+
<div class="exampleWrapper">
|
|
617
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/accordion-example.html) -->
|
|
618
|
+
<!-- The below content is automatically added from ./../apiExamples/accordion-example.html -->
|
|
619
|
+
<auro-radio-group>
|
|
620
|
+
<span slot="legend">Accordion Test</span>
|
|
621
|
+
<auro-radio id="basicGroupRadio1" label="Credit or debit card" name="creditordebit" value="credit"></auro-radio>
|
|
622
|
+
<auro-radio id="basicGroupRadio2" label="Apple Pay" name="applePay" value="applePay"></auro-radio>
|
|
623
|
+
<auro-radio id="basicGroupRadio3" label="Alaska Airlines Commercial Account" name="alaskaCommercial" value="alaskaCommercial"></auro-radio>
|
|
624
|
+
<auro-accordion>
|
|
625
|
+
<span slot="trigger">More payment options</span>
|
|
626
|
+
<auro-radio id="basicGroupRadio4" label="Click to pay" name="manualCredit" value="manualCredit"></auro-radio>
|
|
627
|
+
<auro-radio id="basicGroupRadio5" label="Google Pay" name="googlePay" value="googlePay"></auro-radio>
|
|
628
|
+
</auro-accordion>
|
|
629
|
+
</auro-radio-group>
|
|
630
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
631
|
+
</div>
|
|
632
|
+
<auro-accordion alignRight>
|
|
633
|
+
<span slot="trigger">See code</span>
|
|
634
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/accordion-example.html) -->
|
|
635
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/accordion-example.html -->
|
|
636
|
+
|
|
637
|
+
```html
|
|
638
|
+
<auro-radio-group>
|
|
639
|
+
<span slot="legend">Accordion Test</span>
|
|
640
|
+
<auro-radio id="basicGroupRadio1" label="Credit or debit card" name="creditordebit" value="credit"></auro-radio>
|
|
641
|
+
<auro-radio id="basicGroupRadio2" label="Apple Pay" name="applePay" value="applePay"></auro-radio>
|
|
642
|
+
<auro-radio id="basicGroupRadio3" label="Alaska Airlines Commercial Account" name="alaskaCommercial" value="alaskaCommercial"></auro-radio>
|
|
643
|
+
<auro-accordion>
|
|
644
|
+
<span slot="trigger">More payment options</span>
|
|
645
|
+
<auro-radio id="basicGroupRadio4" label="Click to pay" name="manualCredit" value="manualCredit"></auro-radio>
|
|
646
|
+
<auro-radio id="basicGroupRadio5" label="Google Pay" name="googlePay" value="googlePay"></auro-radio>
|
|
647
|
+
</auro-accordion>
|
|
648
|
+
</auro-radio-group>
|
|
649
|
+
```
|
|
650
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
651
|
+
</auro-accordion>
|
|
652
|
+
|
|
653
|
+
## Restyle Component with CSS Variables
|
|
583
654
|
|
|
584
|
-
The component may be restyled
|
|
655
|
+
The component may be restyled by changing the values of the following token(s).
|
|
585
656
|
|
|
586
657
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
587
658
|
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|