REACT-NATIVES
WIRED FOR SPEED
react-natives v2.1.2
Theme
Light
Dark
Get Started
Menu
Components
Navigation
ViewToggle
An icon-friendly segmented control for switching between display modes.
Example
Preview
Code
Props
ViewToggle Props
Prop
Type
Default
Description
value *
string
The active mode.
onChange *
(mode: string) => void
Called when the active mode changes.
modes *
ViewToggleMode[]
Mode labels and optional icons.
Usage Guidelines
When to use
Use ViewToggle for list, card, chart, calendar, or compact display-mode switches.
Related Components
Button
A compound interactive button component with text, icon, and spinner sub-components, supporting multiple actions, variants, and sizes.
Tabs
A compound tabbed interface component with tab list, individual tabs, and content panels for organizing content into switchable views.
React-Natives
A comprehensive React Native component library.
Documentation
Getting Started
Components
Theming
Community
GitHub
Discord
Twitter
Blog
Support
FAQ
Contact
Contributing
License
© 2026 React-Natives. Wired by WireServers-UI.