SlideOver
import { SlideOver } from '@hanzo/ui/product'
No examples yet.
Types
export type SlideOverProps = {
open: boolean
onClose: () => void
/**
* Which edge the panel slides from. `end` (default) and `start` are the
* reading edges and follow the document's direction; `right` and `left` are
* the screen's.
*/
side?: 'end' | 'start' | 'right' | 'left'
/** Panel width at lg+ (px). Below lg it is always full-screen. Default 420. */
size?: number
/** Optional header title — when set, SlideOver renders a header + a scroll body. */
title?: ReactNode
/** Optional header icon (tinted with `iconColor`). */
icon?: IconLike
iconColor?: string
/** Extra header content, end-aligned before the close button. */
headerRight?: ReactNode
/** Accessible label when no visible title is given. */
ariaLabel?: string
/** z-index for stacking (a pane opened over a drawer passes a higher value). */
zIndex?: number
children: ReactNode
}Exports
SlideOvertype SlideOverProps