Bottom sheet

A button that opens a sheet: on a phone it slides up from the bottom and is dragged by its handle between half and full height or down to close; on a wider screen it is a panel in the middle. The owner writes the title, the button, the sheet's heading and line, its list and its action.

  • 7 editable fields
  • Light and dark
  • Phone to desktop
  • Animated, calmer for reduced motion
  • Set in Funnel Display
  • A small script, no libraries, works without it
Full page

Copy the code with a free developer account

Every component here is free for developers on WireSwan. Create an account, or sign in, and the HTML and CSS are one click away.

How to use it

Paste it in

The line for the head of the page first (the fonts it is set in), then the HTML where the section goes, the CSS in your stylesheet and the script at the end of the page. Everything is under one class, so it cannot restyle the rest of the site.

Make it yours

The colours are the variables at the top of the CSS, with a dark set beside them; the fonts come from Google Fonts by the head line, one font-family line each to swap for your site's own. Using a component twice on one page? Give the second one its own data-edit names.

Upload the site

Every field listed above is in the owner's editor from the first upload, with no setup on your side.

More components

See them all