on-internet
← Community

How do you put padding/margin around the content of the drawer in antd?

Stack Overflow ·

It is showing up like this for me. How do I make the content have padding, without having to write custom CSS and use the className property? My drawer essentially looks like this: <Drawer closable visible width={400} placement="right" title="Create" > <Form layout="vertical" > <Form.Item name="name" label="Name"> <Input /> </Form.Item> </Form> </Drawer>

Comments

Sign in or sign up to comment and upvote.

No comments yet.