Skip to content

Commit 334113c

Browse files
committed
added story with start value
1 parent 8141eb7 commit 334113c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/uui-radio/lib/uui-radio.story.ts

+15
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,18 @@ export const DisabledGroup: Story = props => html`
181181
DisabledGroup.args = {
182182
disabled: true,
183183
};
184+
185+
export const GroupWithStartValue: Story = props => html`
186+
<uui-radio-group value=${props.value}>
187+
<uui-radio value="1">one</uui-radio>
188+
<uui-radio value="2">two</uui-radio>
189+
<uui-radio value="3">three</uui-radio>
190+
<uui-radio value="4">fou2r</uui-radio>
191+
</uui-radio-group>
192+
`;
193+
GroupWithStartValue.args = {
194+
value: '3',
195+
};
196+
GroupWithStartValue.parameters = {
197+
controls: { exclude: ['label', 'checked', 'disabled', 'name'] },
198+
};

0 commit comments

Comments
 (0)