Description
Compose Preference is a library that implements preference screens for Jetpack Compose with Material 3. It is not an officially supported Google product. The library brings its UX design from Material Design 3, the Android settings design guidelines, AndroidX Preference and AOSP Settings, since there is no complete official Material 3 specification for preferences. You use it by calling the ProvidePreferenceLocals composable and then the preference helper functions inside a LazyColumn. Built-in preference types include plain Preference, PreferenceCategory, CheckboxPreference, FooterPreference, ListPreference, which can show an alert dialog or a dropdown menu, MultiSelectListPreference, RadioButtonPreference, SliderPreference, SwitchPreference, TextFieldPreference, and two-target versions of the icon button and switch. Each type offers several kinds of API: an extension function for LazyListScope that avoids repeating the key, a version that takes a value and a change callback, a composable that takes a MutableState, and a composable that takes a value and a change callback. The library is designed for both extensibility and ease of use, and you add it through Gradle.…
Highlights
- Preference screens for Jetpack Compose Material 3
- Checkbox, switch, slider, list and text field preferences
- Dialog or dropdown list preferences
- Several APIs, including MutableState support
- Integrates through Gradle
Ratings & Reviews
No ratings yet
Be the first to rate ComposePreference.
People also visit
ComposePreference FAQ
What is Compose Preference?
A library that gives Jetpack Compose apps Material 3 preference screens, such as settings with switches, lists and sliders.
Is it an official Google library?
No. The README says it is not an officially supported Google product.
How do I use it?
Call ProvidePreferenceLocals, then call the preference helper functions inside a LazyColumn. Add the library through Gradle.
Which preference types are included?
Preference, PreferenceCategory, checkbox, footer, list with dialog or dropdown, multi-select list, radio button, slider, switch, text field, and two-target icon button and switch.
What are the best ComposePreference alternatives?
Popular alternatives to ComposePreference include Sheets, AwesomeUI and ComposePlayground. See all ComposePreference alternatives





