UNPKG

@geekyhawks/react-native-ui-components

Version:

A lightweight and reusable React Native UI components library with customizable Text, TextInput, FloatingLabelTextInput, Button, and more. Built with TypeScript, fully typed, and designed for easy integration into any React Native project.

28 lines 1.17 kB
"use strict"; /** * Switch Variants * * Defines default switch color styles such as `primary`, `secondary`, `success`, and `error`. * Users can create custom color variants or override existing ones * to maintain consistent Switch styling across the app. * * Author: Geeky Hawks FZE LLC */ Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultSwitchColorVariants = void 0; /** * defaultSwitchColorVariants * * Predefined switch color variants using theme tokens. * * - Default colors available: "primary", "secondary", "success", "error" * - You can define additional custom colors through ThemeProvider * and use them via the `color` prop. */ exports.defaultSwitchColorVariants = { primary: { trackColorOn: "primary", trackColorOff: "surfaceVariant", thumbColor: "onPrimary" }, secondary: { trackColorOn: "secondary", trackColorOff: "surfaceVariant", thumbColor: "onSecondary" }, success: { trackColorOn: "success", trackColorOff: "surfaceVariant", thumbColor: "onSuccess" }, error: { trackColorOn: "error", trackColorOff: "surfaceVariant", thumbColor: "onError" }, }; //# sourceMappingURL=SwitchVariants.js.map