Reputation: 99
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
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