Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
Antd Custom Radio Button Mega Option Form Component

Using Antd + React.js, I am looking to create the following large "mega option" selector in place of the traditional Radio.Button experience.

I am currently able to lay these out as Card components with the hoverable option turned on (to add box shadow to the card when hovered). I would like to link these "Cards" as Radio Options such that they are accessible in my Form state just like a regular Radio.Button option.

Current "Card-like" Design: Final output should retain the style function just like a regular radio option.

enter image description here

<Form form={form} layout="vertical" name="add-form">
    <Form.Item
        name="type"
        label="Please select a type below:"
        rules={[
            {
                required: true,
                message: 'Please select your type',
            },
        ]}
    >
        <Row gutter={16}>
            <Col md={12}>
                <Card
                    hoverable
                    title="Radio Button 1"
                    extra={<CheckCircleFilled style={{ color: '#12cc55' }} />}
                >
        This is a short description of the radio button.
                </Card>
            </Col>
            <Col md={12}>
                <Card
                    hoverable
                    title="Radio Button 2"
                >
        This is a short description of the radio button.
                </Card>
            </Col>
        </Row>
    </Form.Item>
</Form>

I would really appreciate someone with a little more Antd custom component experience taking a look at this and showing how this can be converted to a radio option.

All resources I have seen so far are not Antd specific or don't show how it can be used with Antd forms. Much appreciated.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you can do it easily.. use card component inside radio component. style the card component as you wish.
check this example..... https://codesandbox.io/s/heuristic-mendeleev-pjcvg

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!