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
Types›ButtonProps

ButtonProps

Native button: tinted capsule by default, filled with the link colour, or plain text. Icon-only buttons need aria-label.

Source
type ButtonProps = PrimitiveProps<'button'> & { variant?: 'filled' | 'tinted' | 'plain' }

API reference

type ButtonProps = PrimitiveProps<'button'> & { variant?: 'filled' | 'tinted' | 'plain' }

Related types

CheckboxPropsNative checkbox drawn as macOS Calendar's tinted square: hollow at rest, filled with a white tick when checked. `tint` is any CSS colour. Supply a visible label or aria-label.HStackPropsA horizontal row of children, centred on the cross axis. The kit had no horizontal primitive, so every app wrote its own flex block: reach for this before a `stylex.create`.IconButtonPropsA toolbar button that is only a symbol: the plus, the chevrons, the sidebar toggle. `plain` sits on the bar, `tinted` is a rounded square over `fill`, `round` is the small circle a stepper uses. The label is required because the glyph is decorative.
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.