Skip to content

Commit 0fc28b5

Browse files
committed
docs(eds-core-react): add beta warning and usage examples to Radio stories
1 parent a5c05a9 commit 0fc28b5

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

packages/eds-core-react/src/components/next/Radio/Radio.stories.tsx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)