import * as React from "react"; import Text from "./Text"; import { SharedTextProps } from "../textTypes"; import { FontWeights } from "../../../shared/styles/styleUtils/typography/weight"; import { themeTextColorPrimary } from "../../../design-tokens/build/js/designTokens"; export interface SmallTextProps extends SharedTextProps { /** * The color of the text */ color?: React.CSSProperties["color"]; /** * Which HTML tag to render the text in */ tag?: keyof React.ReactHTML; /** * The font weight of the text */ weight?: FontWeights; /** * Human-readable selector used for writing tests */ "data-cy"?: string; } const SmallText = ({ align = "inherit", color = themeTextColorPrimary, wrap = "wrap", weight = "normal", tag = "p", "data-cy": dataCy = "smallText", ...props }: SmallTextProps) => ( ); export default SmallText;