QuickView
A centred, near-full-screen dialog that previews one item, typically a product, without leaving the page: a header with the item's name, a muted scrolling body and a footer for its actions. Controlled: the application decides what is shown and when it opens. Escape and a backdrop press close it, and focus returns to the control that opened it, even when a pointer press opened it without focusing that control. Import from "@instruments/materia-ui/compositions/quick-view".
Usage
Best practices
Keep the last viewed item in state after closing, so the panel does not empty while it animates out.
Put the item's name in
QuickViewHeader; it is the dialog's accessible name.Offer a way to the full page in the header's
actions- a quick view previews, it does not replace the detail page.A panel that docks beside the page (a cart) is a
Sidepanel, not a quick view.
Props
QuickView
QuickViewBody
QuickViewContent
QuickViewDetails
QuickViewFooter
QuickViewHeader
QuickViewLayout
QuickViewMedia
Also exports
- type
QuickViewBodyProps - type
QuickViewContentProps - type
QuickViewDetailsProps - type
QuickViewFooterProps - interface
QuickViewHeaderProps - type
QuickViewLayoutProps - type
QuickViewMediaProps - type
QuickViewProps