@spark-web/text
Version:
--- title: Text storybookPath: typography-text--default isExperimentalPackage: false ---
17 lines (16 loc) • 871 B
TypeScript
import type { ReactNode } from 'react';
import type { UseTextProps } from "./use-text.js";
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;
}): import("@emotion/react/jsx-runtime").JSX.Element;
export declare const useDefaultTextProps: ({ size: sizeProp, tone: toneProp, weight: weightProp, }: DefaultTextProps) => {
size: NonNullable<import("@spark-web/theme/src/themes/_types/typography").TypographySizing>;
tone: NonNullable<string | number>;
weight: NonNullable<"bold" | "medium" | "light" | "thin" | "black" | "extralight" | "regular" | "semibold" | "extrabold" | undefined> | undefined;
};
export {};