File tree Expand file tree Collapse file tree
packages/eds-core-react/src/components/next/Radio Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,28 @@ const meta: Meta<typeof Radio> = {
1515 parameters : {
1616 docs : {
1717 description : {
18- component :
19- 'Radio button component using vanilla CSS and EDS tokens. Uses Field internally for layout and accessibility.' ,
18+ component : `**⚠️ Beta Component** - This component is under active development and may have breaking changes.
19+
20+ \`\`\`bash
21+ npm install @equinor/eds-core-react@beta
22+ \`\`\`
23+
24+ \`\`\`tsx
25+ import { Radio } from '@equinor/eds-core-react/next'
26+
27+ // Radio group
28+ <fieldset>
29+ <legend>Select option</legend>
30+ <Radio label="Option 1" name="group" value="1" />
31+ <Radio label="Option 2" name="group" value="2" />
32+ </fieldset>
33+
34+ // Without visible label (use aria-label)
35+ <Radio aria-label="Select row" name="table-row" />
36+ \`\`\`
37+
38+ Radio buttons allow users to select one option from a set. Always use within a group with the same \`name\` attribute.
39+ ` ,
2040 } ,
2141 source : {
2242 excludeDecorators : true ,
You can’t perform that action at this time.
0 commit comments