UNPKG

@watheia/docs.markdown.elements.paragraph

Version:
27 lines (26 loc) 727 B
import React from "react"; import { PossibleSizes } from "@watheia/base-ui.theme.sizes"; /** * a paragraph component */ export declare type ParagraphProps = { /** * Font size (from a list of presets). */ size?: PossibleSizes; /** * The underlying html element */ element?: "p" | "div" | "span"; } & React.HTMLAttributes<HTMLParagraphElement>; /** * Paragraph component prototype. Accepts all properties of a native Paragraph element. * */ export declare function Paragraph({ children, className, size, ...rest }: ParagraphProps): JSX.Element; export declare namespace Paragraph { var defaultProps: { size: string; element: string; }; }