Material design input with bootstrap-4

2019-05-06 20:24发布

I am creating a vue webapp and using bootstrap-4 as CSS framework. I want to have input fields like material design, But bootstrap have only older design of input fields with border on all sides and no floating label.

What can be best way to get this done?

2条回答
男人必须洒脱
2楼-- · 2019-05-06 20:30

You should overwrite standard Bootstrap rules with one you need - very simple process.

There are Bootstrap Material, but I think it's for version 3

http://fezvrasta.github.io/bootstrap-material-design/bootstrap-elements.html

But you can take rules from here, for partial that you need, and paste it to your custom CSS.

查看更多
贼婆χ
3楼-- · 2019-05-06 20:53

You may customize what resources you want from bootstrap, doing it you might not have incompatibility with 2 frameworks breaking css each other...

http://getbootstrap.com/customize/

you may try getting resources like grids... something that will not break material design...

I already did it.

查看更多
登录 后发表回答