Duo
  • Apps
  • Platform
  • Docs
  • Simulator
  • Blog
  • Changelog
  • GitHub
Try Duo

UI kit

  • Showcase
  • Overview
  • Guidelines

Components

  • Button
  • Checkbox
  • HStack
  • IconButton
  • LargeTitle
  • List
  • Menu
  • Nav
  • NavigationLink
  • Num
  • Placeholder
  • Row
  • Screen
  • Section
  • Segmented
  • Select
  • Sheet
  • Text
  • TextField
  • Title
  • Toggle
  • VStack
  • Widget
  • WidgetLabel

Hooks

  • useDisplay
  • useNav
  • useNavigation
  • usePresence
  • useWide

Functions

  • Page
  • Sym

Values

  • animations

Types

  • AnimationName
  • App
  • ButtonProps
  • CheckboxProps
  • HStackProps
  • IconButtonProps
  • LargeTitleProps
  • ListProps
  • MenuEntry
  • MenuItem
  • MenuProps
  • PageProps
  • Push
  • NavigationLinkProps
  • PlaceholderProps
  • RowProps
  • ScreenProps
  • SectionProps
  • SegmentedProps
  • SelectProps
  • SheetProps
  • Align
  • Justify
  • StackProps
  • SymProps
  • TextProps
  • TextFieldProps
  • TitleProps
  • ToggleProps
  • VStackProps
  • WidgetProps
  • WidgetLabelProps
Components›Section

Section

Inset rounded group of rows, retaining the original grouped-list geometry.

Source
First group
Rows share one rounded card
Second group

API reference

function Section<T extends ElementType = 'div'>({ as, xstyle, animate, ...props }: SectionProps<T>)

Related components

SegmentedSegmented control: one of a few views or filters, the selected segment raised on `control`. A radio group to assistive tech; `onChange` gets the option.SelectNative select drawn like `TextField`, so a form's pop-up and its fields line up. Children are `<option>`s.SheetA modal card over the app. It is a non-modal `<dialog>` on purpose: `showModal` would lift the card into the top layer, and Chromium hit-tests top-layer content at its untransformed position - inside the scene's preserve-3d transform every point lands behind the card, dead to the finger. The `open` attribute keeps it in the transformed tree where hit-testing is honest, and the scrim, Escape and closing are drawn by hand. Closing is held back until the card has shrunk away, so it leaves the way it came.
Duo

A working simulator of a phone that folds, and the SDK to build apps for it.

Platform

AppsPlatformDocsSimulatorBlogChangelog

Project

GitHubSubmit an appGuidelinesLicense
An experiment by Doan Labs

An unofficial experiment, not affiliated with Apple. iPhone is a trademark of Apple Inc.