How to pass padding/margin as props in React-Bootstrap components

前端 未结 6 1513
闹比i
闹比i 2021-02-15 11:09

I am trying to apply margins and paddings with React-Bootstrap as props.

I passed the docs through but haven\'t found any mention adding padding or margin in there as it

6条回答
  •  梦谈多话
    2021-02-15 11:39

    You'll want to add className="p-5" to the element. This isn't documented in react-bootstrap but it's in the original Bootstrap 4 documentation here: https://getbootstrap.com/docs/4.4/utilities/spacing/#examples

提交回复
热议问题