UNPKG

@spark-web/text

Version:

--- title: Text storybookPath: typography-text--default isExperimentalPackage: false ---

17 lines (16 loc) 883 B
import type { ReactNode } from 'react'; import type { UseTextProps } from './use-text'; declare type DefaultTextProps = { size?: NonNullable<UseTextProps['size']>; tone?: NonNullable<UseTextProps['tone']>; weight?: NonNullable<UseTextProps['weight']>; }; export declare function DefaultTextPropsProvider({ children, size, tone, weight, }: DefaultTextProps & { children: ReactNode; }): JSX.Element; export declare const useDefaultTextProps: ({ size: sizeProp, tone: toneProp, weight: weightProp, }: DefaultTextProps) => { size: "small" | "xsmall" | "standard" | "large"; tone: "link" | "muted" | "disabled" | "fieldAccent" | "accent" | "neutral" | "primary" | "secondary" | "caution" | "critical" | "info" | "positive" | "placeholder" | "primaryHover" | "primaryActive" | "secondaryHover" | "secondaryActive"; weight: "regular" | "semibold"; }; export {};