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›Select

Select

Native select drawn like TextField, so a form's pop-up and its fields line up. Children are <option>s.

Source
function Select({ xstyle, animate, ...props }: SelectProps)

API reference

function Select({ xstyle, animate, ...props }: SelectProps)

Related components

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.TextInline text or a formatted animated number.TextFieldNative text input over `fill`, the field in a form or a sheet. Any `type` works, including `date`, `time` and `datetime-local`; `multiline` swaps in a textarea. Supply a visible label or aria-label.
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.