Skip to main content

Breakpoints

The breakpoint configuration is used to show the toolbar, labels and scale. You can customize the breakpoints to match your design system. It doesn't effect the behaviour of the component itself.

Default Presets

Component comes with it's own default set of breakpoints and you can find them here: Here

Custom Breakpoints

You can pass breakpoints like following:

<ChildPreview
config={{
darkMode: colorMode === "dark" ? true : false,
}}
breakpoints={[
{
title: "xxs",
minWidthRem: 5,
minWidthPx: 80,
icon: DoorClosedIcon,
},
{
title: "md",
minWidthRem: 28,
minWidthPx: 448,
icon: Tablet,
},
]}
>
<Child />
</ChildPreview>

Demo

Width: 0px(NaN%)
00px
max0px
  • Leslie Alexander

    leslie.alexander@example.com

  • Michael Foster

    michael.foster@example.com

  • Dries Vincent

    dries.vincent@example.com

  • Lindsay Walton

    lindsay.walton@example.com

  • Courtney Henry

    courtney.henry@example.com

  • Tom Cook

    tom.cook@example.com