Skip to main content

Bootstrap themed components for use in Plotly Dash

Project description

dash-bootstrap-components

This package provides Bootstrap components for use in Plotly Dash. It is built on top of reactstrap.

Installation

dash-bootstrap-components is hosted on PyPI, and can be installed by running

pip install dash-bootstrap-components

Usage

dash-bootstrap-components uses Bootstrap CSS classes to style its components, but Bootstrap CSS is not bundled with the python package. This is so that users are able to compile Bootstrap CSS themselves and override defaults to acheive the styling they want. Consequently when using dash-bootstrap-components in your dashboard, you must link the CSS you wish to use yourself. There are multiple ways of doing this.

Link local copy of Bootstrap CSS

You can download compiled Bootstrap CSS from the Bootstrap website, there's also a copy in the examples directory of the dash-bootstrap-components repository.

Alternatively you can download the source files and compile them yourself. This lets you override default styling such as colours and margin sizes.

Once you have a copy of Bootstrap CSS, create a folder called assets in the root of your app directory and place the CSS inside. Your Dash app will then automatically serve and link any stylesheets saved in this directory.

Use Bootstrap CDN

If you prefer not to work with a local copy of the CSS and are happy with Bootstrap defaults you can use the Bootstrap CDN. You can either use the external_stylesheets keyword argument in the dash.Dash constructor, or add a link to your app's HTML index template. For more details, check the Plotly Dash user guide.

Documentation of the components available in dash-bootstrap-components is upcoming, for now you can see some examples in the examples directory.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dash-bootstrap-components-0.2.0.tar.gz (182.4 kB view details)

Uploaded Source

File details

Details for the file dash-bootstrap-components-0.2.0.tar.gz.

File metadata

  • Download URL: dash-bootstrap-components-0.2.0.tar.gz
  • Upload date:
  • Size: 182.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for dash-bootstrap-components-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9730fb823fa512823ef81f91be6eaf45bba09476b94a12b036390eb6d56dc44f
MD5 b7e4aca3b17ac8854588237f4fd395be
BLAKE2b-256 0e856515934079870ceb9b81d8be08196bc05c91f28adceffb4b0ddd9b9a1c83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page