jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
23 lines (22 loc) • 649 B
TypeScript
/**
* @file index.tsx
*
* @fileoverview Renders text as a particular style (custom styles).
*/
import React from 'react';
import { ColorProps, FontSizeProps, LineHeightProps, SpaceProps, TextAlignProps } from 'styled-system';
declare type BaseTextProps = ColorProps & SpaceProps & FontSizeProps & LineHeightProps & TextAlignProps;
export interface TextProps extends BaseTextProps {
/**
* The text to display.
*/
children: React.ReactNode;
/**
* The tag to use.
*
* @default "p"
*/
tag?: any;
}
export declare const Text: ({ children, tag, ...props }: TextProps) => JSX.Element;
export default Text;