@patreon/studio
Version:
Patreon Studio Design System
14 lines (13 loc) • 543 B
TypeScript
import type { ComponentTextProps } from '~/types/text';
import type { DataBodyTextBundle, DataDisplayTextBundle, DataHeadingTextBundle } from '~/types/type-bundles';
type BodyTextProps = {
variant: 'body';
} & ComponentTextProps & DataBodyTextBundle;
type HeadingTextProps = {
variant: 'heading';
} & ComponentTextProps & DataHeadingTextBundle;
type DisplayTextProps = {
variant: 'display';
} & ComponentTextProps & DataDisplayTextBundle;
export type DataTextProps = BodyTextProps | HeadingTextProps | DisplayTextProps;
export {};