@geekyhawks/react-native-ui-components
Version:
Lightweight, reusable React Native UI components with built-in theming — including Text, TextInput, FloatingLabelTextInput, Button, and more. Fully typed with TypeScript and easy to integrate into any project.
28 lines • 1.17 kB
JavaScript
;
/**
* 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