All Projects → oceanbit → react-native-button-toggle-group

oceanbit / react-native-button-toggle-group

Licence: other
An animated button toggle group for React Native

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to react-native-button-toggle-group

Android Cards
CardView with Material Design using ConstraintLayout
Stars: ✭ 136 (+209.09%)
Mutual labels:  material-components
Materialnavigationview Android
📱 Android Library to implement Rich, Beautiful, Stylish 😍 Material Navigation View for your project with Material Design Guidelines. Easy to use.
Stars: ✭ 168 (+281.82%)
Mutual labels:  material-components
Material Admin
Free Material Admin Template
Stars: ✭ 219 (+397.73%)
Mutual labels:  material-components
Cafebar
An upgraded Snackbar for Android that provides more options and easy to use
Stars: ✭ 142 (+222.73%)
Mutual labels:  material-components
Material Components Web React
Material Components for React (MDC React)
Stars: ✭ 1,937 (+4302.27%)
Mutual labels:  material-components
Material Components Android
Modular and customizable Material Design UI components for Android
Stars: ✭ 13,128 (+29736.36%)
Mutual labels:  material-components
Material Intro
A simple material design app intro with cool animations and a fluent API.
Stars: ✭ 1,718 (+3804.55%)
Mutual labels:  material-components
Materialbanner
A library that provides an implementation of the banner widget from the Material design.
Stars: ✭ 241 (+447.73%)
Mutual labels:  material-components
Material Components Flutter Codelabs
Codelabs for Material Components for Flutter (MDC-Flutter)
Stars: ✭ 165 (+275%)
Mutual labels:  material-components
Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (+397.73%)
Mutual labels:  material-components
Foodium
It simply loads Posts data from API and stores it in persistence storage (i.e. SQLite Database). Posts will be always loaded from local database. Remote data (from API) and Local data is always synchronized.
Stars: ✭ 1,940 (+4309.09%)
Mutual labels:  material-components
Materialdrawer
The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
Stars: ✭ 11,498 (+26031.82%)
Mutual labels:  material-components
Ui Material Components
Monorepo that contains all of the NativeScript Material Design plugins.
Stars: ✭ 170 (+286.36%)
Mutual labels:  material-components
Ibackdrop
A library to simply use Backdrop in your project (make it easy). Read more ->
Stars: ✭ 137 (+211.36%)
Mutual labels:  material-components
Material Backdrop
A simple solution for implementing Backdrop pattern for Android
Stars: ✭ 221 (+402.27%)
Mutual labels:  material-components
Blazormaterial
Blazor components implementing Google's Material components for web - https://material.io/components/web
Stars: ✭ 136 (+209.09%)
Mutual labels:  material-components
Materialdesign2
A beautiful app designed with Material Design 2 using Android X.
Stars: ✭ 170 (+286.36%)
Mutual labels:  material-components
Material Components Web
Modular and customizable Material Design UI components for the web
Stars: ✭ 15,931 (+36106.82%)
Mutual labels:  material-components
Grocy Android
ERP beyond your fridge, now on your phone – An awesome companion app for Grocy
Stars: ✭ 227 (+415.91%)
Mutual labels:  material-components
React Material Components Web
React wrapper of Google's Material Components Web
Stars: ✭ 184 (+318.18%)
Mutual labels:  material-components

React Native Button Toggle Group

Our npm path

Install

npm i --save react-native-button-toggle-group

Or

yarn add react-native-button-toggle-group

Usage

A preview of the component in use

import ButtonToggleGroup from 'react-native-button-toggle-group';

// ...

const [value, setValue] = React.useState('Light');

return (
<ButtonToggleGroup
    highlightBackgroundColor={'blue'}
    highlightTextColor={'white'}
    inactiveBackgroundColor={'transparent'}
    inactiveTextColor={'grey'}
    values={['Auto', 'Light', 'Dark']}
    value={value}
    onSelect={val => setValue(val)}
/>
)

Props

Property Type Description
values string[] The list of strings to render as options for the button group
value string The string to render as the selected option
onSelect (val: string) => void A function that's called whenever one of the values is selected
highlightBackgroundColor string The color that the selected background will be. In the above GIF, it's blue.
highlightTextColor string The color that the selected text will be. In the above GIF, it's white.
inactiveBackgroundColor string The color that the inactive background will be. In the above GIF, it's white.
inactiveTextColor string The color that the inactive text will be. In the above GIF, it's a light blue grey.
style StyleProp Overwrite styling that can be applied to the container of the button toggle group. In the above GIF, we've added a border, border radius, and some padding.
textStyle StyleProp Overwrite styling that can be applied to the text of the button toggle group. In the above GIF, we've changed the font family and font size.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].