Skip to main content

One container and one spacing rule for forms

The design system has a new container for forms. With FormFrame, sections are 24 px apart and fields 16 px apart, the buttons sit in a footer that stays visible while the form scrolls, and a form is one of three widths. See Forms.

  • Opt-in. Forms in the web app look the same as before; none of them uses it yet.
  • Keyboard. Enter in a single-line field submits, and ⌘S or Ctrl+S saves the form instead of opening the browser's Save page.
  • For contributors. FormFrame takes header, submitLabel, secondaryActions, dirty, error and width (narrow, default or wide); FormSection groups FormFields under a title. It works on a page and inside DialogContent. The design-system gallery shows both under Forms.