Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
FormsReact Native

Rating

Named whole-number rating options with controlled values and read-only support.

Public APILumenRatingReact Native

Native example

Use Rating

Named whole-number rating options with controlled values and read-only support. Hosts own application state and business actions.

View captured React Native example
Rating rendered in the Expo web renderer Lumen playground
Captured exampleExpo web renderer
tsx
<LumenRating label="Rating" value={rating} onValueChange={setRating} />

Reference

Public API

The primary shared and platform-specific options exposed by LumenRating.

APIValues or typeDefaultDescription
host content and stateAdapter-specific public contractRequiredKeeps application data and behavior in the host.

Native behavior

Design and accessibility

When to use it

Named whole-number rating options with controlled values and read-only support. Hosts own application state and business actions.

Accessibility

Named whole-number rating options with controlled values and read-only support.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives