Overlay

Drawer API

Drawer is a client-only panel for settings, filters, navigation, and CMS editing surfaces.

Preview

Import

import { Drawer, DrawerContent, DrawerHeader } from "@axonyx/react/client";

Props

PropTypeDefaultDescription
openbooleanrequiredControlled open state.
onOpenChange(value: boolean) => voidrequiredCalled when the drawer should open or close.
side"left" | "right" | "bottom""right"Drawer placement.

CSS contract

.ax-drawer
.ax-drawer__backdrop
.ax-drawer__panel
.ax-drawer__header
.ax-drawer__title
.ax-drawer__description
.ax-drawer__content
[data-side]