Skip to content

Commit

Permalink
chore(ui): fix add back radio and checkbox to form story
Browse files Browse the repository at this point in the history
  • Loading branch information
guoda-puidokaite committed Nov 12, 2024
1 parent 54d8aa2 commit 8d82266
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/ui-components/src/components/Form/Form.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,22 @@ import { Form, FormProps } from "./Form.component"
import { FormRow } from "../FormRow/FormRow.component"
import { FormHint } from "../FormHint/FormHint.component"
import { FormSection } from "../FormSection/FormSection.component"

import { Select } from "../Select/Select.component"
import { SelectOption } from "../SelectOption/SelectOption.component"

import { Textarea } from "../Textarea/Textarea.component"
import { TextInput } from "../TextInput/TextInput.component"

import { Button } from "../Button/Button.component"
import { ButtonRow } from "../ButtonRow/ButtonRow.component"

import { Radio } from "../Radio/Radio.component"
import { RadioGroup } from "../RadioGroup/RadioGroup.component"

import { Checkbox } from "../Checkbox/Checkbox.component"
import { CheckboxGroup } from "../CheckboxGroup/CheckboxGroup.component"

import { PortalProvider } from "../PortalProvider/PortalProvider.component"
import { IntroBox } from "../IntroBox/IntroBox.component"
import { Switch } from "../Switch/Switch.component"
Expand Down Expand Up @@ -98,6 +108,16 @@ export const ComplexForm = {
</FormRow>
</FormSection>,
<FormSection title="Second Section of the Form" key="fs-2">
<RadioGroup name="color-radios" label="In case you are not sure, select your true favorite color:">
<Radio key="r-1" id="color-red" label="Red" value="red" />
<Radio key="r-2" id="color-blue" label="Blue" value="blue" />
<Radio key="r-3" id="color-green" label="Green" value="green" />
<Radio key="r-4" id="color-yellow" label="Yellow" value="yellow" />
</RadioGroup>
<CheckboxGroup name="all-about-red" label="What is your opinion towards the color Red?">
<Checkbox key="c-1" id="overrated" label="Red is vastly overrated" value="overrated" />
<Checkbox key="c-2" id="blackisred" label="Black is better" value="blackisbetter" />
</CheckboxGroup>
<FormRow key="fr-4">
<Textarea
label="Your Message"
Expand Down

0 comments on commit 8d82266

Please sign in to comment.