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
Hooks›useNav

useNav

Inside a <Nav>: push((back) => <Page title="…" back={back}>…</Page>).

Source
const useNav = () => …

API reference

const useNav = () => …

Related hooks

useNavigationInside a `<Nav>`: `push((back) => <Page title="…" back={back}>…</Page>)`.usePresenceKeeps a thing mounted for `ms` after `open` drops so its exit animation can play. `closing` is true during that tail; style the exit off it.useWideWatches the returned ref's own box and reports whether it is wider than `at`.
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.