onecart-ui
Version:
Cross-platform React and React Native component library with white-label support
35 lines • 815 B
TypeScript
import { TextProps } from "./Text";
/**
* Paragraph size options
*/
export type ParagraphSize = "xs" | "sm" | "md" | "lg";
/**
* Paragraph spacing options
*/
export type ParagraphSpacing = "none" | "xs" | "sm" | "md" | "lg" | "xl";
/**
* Paragraph component props
*/
export interface ParagraphProps extends TextProps {
/**
* Size of the paragraph text
* @default 'md'
*/
size?: ParagraphSize;
/**
* Spacing below the paragraph
* @default 'md'
*/
spacing?: ParagraphSpacing;
/**
* Whether to indent the first line of the paragraph
* @default false
*/
firstLineIndent?: boolean;
/**
* Whether to apply a drop cap style to the first letter
* @default false
*/
dropCap?: boolean;
}
//# sourceMappingURL=Paragraph.d.ts.map