import { COffcanvas } from '@coreui/react'
// or
import COffcanvas from '@coreui/react/src/components/offcanvas/COffcanvas'
PropertyDescriptionTypeDefault
backdropApply a backdrop on body while offcanvas is open.boolean | 'static'true
classNameA string of all className you want applied to the base component.string-
keyboardCloses the offcanvas when escape key is pressed.booleantrue
onHideCallback fired when the component requests to be hidden.() => void-
onShowCallback fired when the component requests to be shown.() => void-
placementComponents placement, there’s no default placement.'start' | 'end' | 'top' | 'bottom'-
portalGenerates modal using createPortal.booleanfalse
responsive
4.6.0+
Responsive offcanvas property hide content outside the viewport from a specified breakpoint and down.boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'true
scrollAllow body scrolling while offcanvas is openbooleanfalse
visibleToggle the visibility of offcanvas component.booleanfalse
On this page