UNPKG

@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.

46 lines 1.53 kB
/** * Text Variants * * Defines default text styles such as `body`, `h1`, `h2`, and `caption`. * Users can create custom variants or override existing ones to standardize * typography across the app. * * Author: Geeky Hawks FZE LLC */ import { TextStyle } from "react-native"; /** * TextVariant * * Defines the style properties for a single text variant. * It is a partial React Native TextStyle, so you can override * only the properties you need. */ export type TextVariant = Partial<TextStyle>; /** * TextVariants * * Represents a collection of named text variants. * Keys are variant names (e.g., "body", "h1", or custom names), * and values are the corresponding TextVariant styles. */ export type TextVariants = Record<DefaultTextVariants, TextVariant> & Record<string, TextVariant>; /** * DefaultTextVariants * * Predefined text style options available out-of-the-box: * - "body": standard paragraph or body text * - "h1": largest heading, used for primary titles * - "h2": secondary heading, smaller than h1 * - "caption": small text, typically used for hints or footnotes */ export type DefaultTextVariants = "body" | "h1" | "h2" | "caption"; /** * defaultTextVariants * * Predefined text variants with font size, weight, and style. * * - These are the default variants available: "body", "h1", "h2", "caption". * - You can provide additional custom variants through the ThemeProvider. */ export declare const defaultTextVariants: TextVariants; //# sourceMappingURL=TextVariants.d.ts.map