Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/annmariew/dash-bootstrap-cheatsheet

A guide for using Bootstrap 5 classes in Dash Bootstrap Components V1
https://github.com/annmariew/dash-bootstrap-cheatsheet

bootstrap plotly-dash

Last synced: about 1 month ago
JSON representation

A guide for using Bootstrap 5 classes in Dash Bootstrap Components V1

Awesome Lists containing this project

README

        

# dash-bootstrap-cheatsheet

This handy interactive cheatsheet makes it easy to use the Bootstrap 5 classes with your Dash app
made with the latest version of *dash-bootstrap-components* V1.0

### See it live at https://dashcheatsheet.pythonanywhere.com/

### Note - this is a WIP. If you have any comments or suggestions or just want to give some :heart: Please open an issue.

## Background

If you are upgrading from `dash-bootstrap-components` v0.13 (which uses Bootstrap 4) you will find lots of cool new features – but also some breaking changes. This is mainly because Bootstrap 5 is a major rewrite of the Bootstrap project. Not only are there changes to some of the components, but there are also many new and renamed utility classes.

One example is Bootstrap 5 now supports RTL, so classes are renamed “start” and “end” instead of “left” and “right”. This means the new way to set left or right margin is className="ms-2 me-4" rather than className="ml-2 mr-4". There are also many new things like the opacity classes, and classes that make it easier to make components like: image

For more information see
- `dash-bootstrap-components` [V1 announcement](https://community.plotly.com/t/dash-bootstrap-components-v1-beta-release-available/56526/5)
- [Bootstrap Migration Guide](https://getbootstrap.com/docs/5.0/migration/)
- `dash-bootstrap-components` [Migration Guide](https://dbc-v1.herokuapp.com/migration-guide/)

I hope this Cheatsheet makes it easier for you to use dbc V1 and Bootstrap 5 in your Dash app.

---
-
---

![cheatsheet](https://user-images.githubusercontent.com/72614349/134268914-10dc5211-80b2-4b36-95b4-0515d27d70e8.gif)