smart-react-components
Version:
React UI library, wide variety of editable ready to use Styled and React components.
19 lines (18 loc) • 709 B
TypeScript
import React from "react";
import { Theme } from "../theme";
export declare type ElementPropValueMethod = (value: any, theme: Theme) => string;
export declare type EPV<T> = T | [T, boolean];
export declare type JSXChild = string | JSX.Element;
export declare type JSXChildren = JSXChild | JSXChild[];
export declare type Value = string | number;
export declare type ValueMix = Value | Value[];
export declare type SetValue<T> = ((value: T) => void) | React.Dispatch<React.SetStateAction<T>>;
export interface ThemeVariable<T> {
[key: string]: T;
}
export interface JSXElementProps {
[key: string]: any;
}
export interface Keys {
[key: string]: string | ElementPropValueMethod;
}