Button
An interactive action with visual variants, loading feedback, icons, and configurable press motion.
Button is ARCUI's primary action primitive. It combines native Pressable semantics with token-driven presentation, UI-thread press feedback, loading behavior, theme interpolation, and ARCUI-managed string-label typography.
Usage
import { Button } from "react-native-arc-ui";
export function Example() {
return <Button onPress={() => console.log("Pressed")}>Continue</Button>;
}type="solid", tone="primary", active={true}, and loading={false} are the normal defaults. Press feedback falls back to tokens.pressAnimation.type when animation is not provided.
Types
Button supports three visual presentations.
Solid
<Button type="solid">Continue</Button>Border
<Button type="border">Continue</Button>Transparent
<Button type="transparent">Continue</Button>
Semantic tones and per-instance colors
type controls the visual presentation; tone independently selects a semantic palette: primary, secondary, neutral, or danger.
<Button tone="primary">Continue</Button>
<Button tone="secondary" type="border">Learn more</Button>
<Button tone="neutral" type="transparent">Maybe later</Button>
<Button tone="danger">Delete account</Button>Use the typed colors object to override individual states without replacing the whole palette:
<Button
tone="primary"
colors={{
background: {
default: {
light: "rgba(0,64,135,1)",
dark: "rgba(10,132,255,1)",
},
pressed: "rgba(0,95,204,1)",
},
text: { default: "rgba(255,255,255,1)" },
}}
>
Continue
</Button>Available slots are background, border, and text, each with default, pressed, inactive, and disabled, plus the standalone loading color. Resolution is per-slot: instance colors → matching tone/state → Button tokens. Keep foreground/background contrast in mind when overriding them together.

States
Disabled
Use native disabled when the action is semantically unavailable.
<Button disabled>Continue</Button>The native Pressable becomes disabled and ARCUI renders the dedicated disabled visual state.
Inactive
Use active={false} when the control should remain visible in the interaction flow but should not be actionable.
<Button active={false}>Continue</Button>Inactive is intentionally distinct from disabled in ARCUI's visual token model, while still making the underlying Pressable non-interactive.
Loading
<Button loading>Continue</Button>While loading, Button:
- disables native press interaction;
- transitions regular content out;
- renders an ARCUI
SpinnerLoaderoverlay; - reports accessibility busy state.

Press animations
The animation prop overrides the configured press behavior for one Button.
Scale down
<Button animation="scaleDown">Continue</Button>Scale up
<Button animation="scaleUp">Continue</Button>Highlight
<Button animation="highlight">Continue</Button>None
<Button animation="none">Continue</Button>none removes ARCUI's visual press animation without changing normal native Button semantics.
Reduced Motion disables scale movement. Scale-based modes fall back to immediate pressed-color feedback so interaction does not become visually silent.
Icons
iconLeft and iconRight accept arbitrary React content.
import { Button, Icon } from "react-native-arc-ui";
<Button iconLeft={<Icon type="chevronLeft" />}>Previous</Button>
<Button iconRight={<Icon type="chevronRight" />}>Continue</Button>Both sides can be composed together.
<Button iconLeft={<YourLeftIcon />} iconRight={<YourRightIcon />}>
Continue
</Button>Because icon slots can contain any React node, Button does not assume it owns their internal colors. ARCUI instead mutes the icon subtree in inactive and disabled states.
String labels and custom content
When Button can resolve children to text content, ARCUI renders the label with Button typography, theme-aware colors, central font scaling, and a default accessibility label derived from that text.
<Button>Continue</Button>Arbitrary React content is also valid:
<Button accessibilityLabel="Continue">
<CustomButtonContent />
</Button>Custom content remains consumer-owned. Provide an explicit accessibility label when its accessible meaning is not already clear.
Styling
Content style
contentStyle applies to the internal content row.
<Button contentStyle={{ paddingHorizontal: 32 }}>
Continue
</Button>Radius and border width
<Button radius={16} borderWidth={2} type="border">
Continue
</Button>When omitted, these values come from tokens.radius.button and tokens.border.button.
Native Pressable props
Button inherits its supported native action surface from PressableProps.
<Button
hitSlop={12}
accessibilityLabel="Save changes"
accessibilityHint="Saves the current form"
style={{ marginTop: 16 }}
>
Save
</Button>The inherited style applies to the outer Pressable. Use contentStyle, radius, and borderWidth for Button-owned presentation.
Press callbacks
<Button
onPress={() => console.log("press")}
onPressIn={() => console.log("press in")}
onPressOut={() => console.log("press out")}
>
Continue
</Button>disabled, active={false}, and loading disable the native Pressable. If state changes after a press has already started, Button still restores its internal visual state and allows the matching onPressOut lifecycle callback to complete.
Testing
Use testID when the action needs stable automation identifiers.
<Button testID="continue-button">Continue</Button>For ARCUI-rendered string labels and loading feedback, Button also exposes stable descendants:
continue-button-label
continue-button-loadingFor provider setup and the dedicated testing entrypoint, see Testing.
API Reference
Also inherits: Omit<
PressableProps,
"children" | "role" | "accessibilityRole" | "aria-disabled" | "aria-busy"
>
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | required | — |
| contentStyle? | StyleProp<ViewStyle> | — | Style applied to the internal content row. |
| type? | "solid" | "border" | "transparent" | — | — |
| tone? | TButtonTone | "primary" | Semantic Button palette. |
| colors? | Readonly<IButtonColors> | — | Per-instance ARCUI-owned color overrides. Resolution priority: colors > tone > component tokens. |
| radius? | number | — | Instance-level override for tokens.radius.button. |
| borderWidth? | number | — | Instance-level override for tokens.border.button. |
| animation? | TPressAnimation | — | Press feedback behavior. Falls back to tokens.pressAnimation.type. |
| active? | boolean | — | Inactive keeps its dedicated visual state but prevents interaction. |
| loading? | boolean | — | Displays SpinnerLoader and prevents interaction. |
| iconLeft? | ReactNode | — | — |
| iconRight? | ReactNode | — | — |
Per-instance color slots: IButtonColors
| Prop | Type | Default | Description |
|---|---|---|---|
| background? | Readonly<IButtonStateColors> | — | — |
| border? | Readonly<IButtonStateColors> | — | — |
| text? | Readonly<IButtonStateColors> | — | — |
| loading? | TThemeColor | — | — |
Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.
Button also inherits its supported native action props from React Native PressableProps, except the semantic fields ARCUI owns directly.
Motion
Button keeps semantic state in React/native props and frame-level visual state in Reanimated.
ARCUI animates or derives:
- theme-aware background, border, and label colors;
- inactive and disabled state progress;
- press scale or pressed-color feedback;
- loading content visibility;
- icon muting;
- central font scaling for ARCUI-rendered string labels.
Press-specific timing comes from tokens.pressAnimation; general state transitions use ARCUI animation tokens. Entering/exiting behavior is used for mounted icon/loading elements and respects Reduced Motion.
See Motion for the broader ARCUI motion model.
Performance
Button does not use React state as an animation frame driver. Continuous visual updates are kept in Reanimated SharedValues and animated styles, while normal application semantics remain in React/native props.
For broader guidance, see Performance.
Accessibility
Button owns native button semantics and reports disabled/busy state from the real semantic state supplied to the component.
For text-resolvable content, the text becomes the default accessibility label. Consumer accessibilityLabel, accessibilityHint, and compatible native accessibility props remain available through the inherited Pressable surface.
ARCUI does not inject generic permanent gesture instructions such as "double tap to activate". Use a hint only when it adds information beyond the native role and state.
See Accessibility.
Theming
Button colors are tokenized by tone (primary, secondary, neutral, danger), presentation (solid, border, transparent), and interaction state (primary, pressed, disabled, inactive). It also consumes ARCUI animated theme progress, so theme changes and ReverseTheme composition remain animated.
Relevant configuration includes:
colors.light.button
colors.dark.button
radius.button
border.button
sizings.button
typography.button
pressAnimation
animations
enteringExitingTop-level token overrides are shallow. Compose the namespace you are changing from the defaults:
import {
ARCUI,
defaultTokens,
type TTokensOverride,
} from "react-native-arc-ui";
const tokens = {
radius: {
...defaultTokens.radius,
button: 12,
},
border: {
...defaultTokens.border,
button: 2,
},
pressAnimation: {
...defaultTokens.pressAnimation,
type: "scaleDown",
duration: 120,
scaleDownValue: 0.97,
},
} satisfies TTokensOverride;
export function App() {
return <ARCUI tokens={tokens}>{/* application */}</ARCUI>;
}Try it live
Use the existing React Native Snack to explore Button variants, states, loading, icons, and press feedback interactively.


