Side basket drawer with scrim
A full height basket that slides in over a dimmed page, with an empty state, rows, a subtotal and the page locked behind it.
Links in the preview stay on the block.
Open on its ownThe prompt
One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.
782 words
# Side basket drawer with scrim One overlays component, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML. ## Goal A basket that slides in from the end edge over a dimmed page, with its rows, a subtotal, a checkout button, and an empty state. For a shop. ## Structure 1. A scrim div fixed over the page, closing the drawer when clicked. 2. An aside fixed to the end edge, full height, a column. 3. Top bar over a 1px rule: the title with its count, a Close button with a 14px cross. 4. A scrolling body holding the empty state: a heading, one line, an underlined link.
The full prompt and code are part of Pro
Blocks from free pages include both at no cost.
More like this
Overlays
Same page




