Responsive styles#

You can pass breakpoints from the theme as responsive attributes using the breakpoint function inside your style props to apply the style for a particular viewport.

Note: Unfortunately, breakpoints in Bumbag Native on the web are currently not dynamically responsive. This means that changing your browser width will not trigger the breakpoint value to change. You will need to first refresh your browser.

Widths#

In this example, the background of the box will be red until the max desktop width is reached. It will then fallback to the default.

This is a box
Editable example

Heights#

In this example, the background of the box will be red until the max medium height is reached (under 736px). It will then fallback to the default.

This is a box
Editable example
On this page
Copyright © 2021 Jake Moxey