react-native-material-elements
Version:
React native material elements is a sophisticated UI library crafted to enhance your React Native development workflow. Designed for simplicity and elegance, nex-ui provides a rich collection of components and utilities to effortlessly create polished mob
32 lines (26 loc) • 1.03 kB
TypeScript
import React from 'react';
import { View } from 'react-native';
import { BaseStyles, StyledProps } from '../../libraries/style/styleTypes';
import { BaseButtonProps } from '../Button/Button.types';
import { ImageProps } from '../Image/Image.types';
/**
* `CardVariations` represents the various styles a card component can have, including 'outlined' or undefined.
*/
export type CardVariations = 'outlined' | undefined;
/**
* `CardProps` defines the properties that can be passed to a card component.
* Extends various style interfaces for flexibility in styling.
*/
export interface CardProps extends React.ComponentPropsWithRef<typeof View>, StyledProps {
sx?: BaseStyles;
/**
* Variation of the card, such as 'outlined'.
*/
variation?: CardVariations;
}
export type CardMediaProps = ImageProps;
export interface CardHeaderProps extends React.ComponentPropsWithRef<typeof View>, StyledProps {
sx?: BaseStyles;
}
export type CardContentProps = CardHeaderProps;
export type CardActionProps = BaseButtonProps;