Feedback
Sheet
A sheet holds a short task over the page, such as adding an entry at the current time, without leaving it: it rises from the bottom on phones and opens from the side on wide windows.
In kanso-ui as Sheet
Variants and sizes
- Bottom sheet (
k-sheet): phones and windows under 600 px. It spans the screen's width and takes only the height it needs. - Side sheet (
k-sheet--side): from 600 px, the same sheet opens from the right edge, full height and 360 px wide, withradius-3xlon its left corners and no handle.
States
- Opening: slides in from its edge over
--k-motion-mediumwith--k-ease-enter; underprefers-reduced-motionit fades in. - Open: the page behind is inert.
- Dragging: the bottom sheet follows the finger and closes when let go past half its height.
- Closing: Close, Escape, a tap on the scrim, or a drag down.
- Inside, the selected kind shows as a surface pill with an
outlineborder and bold text, so it never rests on colour.
Do and don’t
Do
Title it with the task and the moment: "Add at 14:32".
Keep one main action, full width, at the bottom: "Add an entry".
Fit the content on a phone screen without scrolling.
Don’t
Open a sheet from a sheet.
Make a drag the only way to close it.
What you provide
- The title, the content (kinds and fields), the main action label and what it does, the kind selected first, and the control that gets focus back.