Responsive
Show/Hide components and useBreakpoint hook for responsive layouts.
Preview
Interactive examples use the same @flux/ui build as production. Toggle theme in the header for light and dark. Motion tokens and layout patterns live under Motion and Patterns in the sidebar.
Live preview
Resize the window to see changes
Visible on md and above (≥768px)
Visible below md (<768px)
Desktop only (≥1024px)
Mobile / tablet (<1024px)
Installation
Add the package to your app (full Next.js + Tailwind steps on Installation):
npm install @payglocal_ui/flux-uiUsage
Import
import { Show, Hide, useBreakpoint } from "@payglocal_ui/flux-ui";Example
<Show above="md">
<DesktopSidebar />
</Show>
<Hide above="md">
<MobileDrawer />
</Hide>