Skip to content

Stepper

A controlled native numeric stepper with bounded values.

#Import

Import Stepper from @quickgui/solid/swift-ui.

import { Host, Stepper } from "@quickgui/solid/swift-ui";

#Usage

<Host matchContents>
  <Stepper
    value={copies()}
    min={1}
    max={20}
    label={"Copies: " + copies()}
    onValueChange={setCopies}
  />
</Host>

#API reference

Expand an entry for its description and complete signature. A dash means no declaration default is documented.

Stepper(props: StepperProps): NativeNode
testIDstring—

Stable identifier exposed to macOS accessibility and UI testing.

string
View source
modifiersViewModifier[]—

SwiftUI modifiers, applied in array order.

ViewModifier[]
View source
valuenumber—

Controlled stepper value.

number
View source
minnumber—

Declares min (optional). Reactive JSX expressions update this property in place.

number
View source
maxnumber—

Declares max (optional). Reactive JSX expressions update this property in place.

number
View source
stepnumber—

Declares step (optional). Reactive JSX expressions update this property in place.

number
View source
labelstring—

Declares label (optional). Reactive JSX expressions update this property in place.

string
View source
onValueChange(value: number, event: QuickGuiEvent) => void—

Declares onValueChange (optional). Reactive JSX expressions update this property in place.

(value: number, event: QuickGuiEvent) => void
View source
ref((node: NativeNode) => void) | NativeNode—

Declares ref (optional). Reactive JSX expressions update this property in place.

((node: NativeNode) => void) | NativeNode
View source