Jane Fred
Jane Fred

Reputation: 1489

I want to act the label as hyperlink

I am using antDesign and reactjs

 <Form.Item name="City" label="City">
            <Input  maxLength="100" size="small" disabled={true} />
        </Form.Item>

I want the label City as a hyper link.

https://ant.design/components/anchor/

Using the <Link> how is it possible?

Upvotes: 1

Views: 486

Answers (1)

moshfiqrony
moshfiqrony

Reputation: 4723

Do it like this

<Form.Item name="City" label={<a href="Link_here">City</a>}>
    <Input  maxLength="100" size="small" disabled={true} />
</Form.Item>

Upvotes: 2

Related Questions