CuteBoy
CuteBoy

Reputation: 99

React: How to create different size input fields using antd?

I've tried as below and all the fields appear the same:

<Input size="large" placeholder="Username" prefix={<UserOutlined />}/> <br/><br/>
<Input placeholder="default size" /> <br/><br/>
<Input size="large" placeholder="Password"/> <br/><br/>
<Input size="small" placeholder="Small size"/>

Upvotes: 0

Views: 4076

Answers (1)

Kevin Moe Myint Myat
Kevin Moe Myint Myat

Reputation: 2165

Have you checked if you imported css from Ant Design?

I've read the official documentation and it says to

import 'antd/dist/antd.css'; 

What are your investigations so far?

I don't think there's anything wrong with your code since it looks similar to sample code that they have provided.

https://ant.design/components/input/

Upvotes: 1

Related Questions