Skip to main content
Version: Next

TextOwnProps

Home > @backstage/canon > TextOwnProps

Signature:

export type TextOwnProps = {
as?: 'p' | 'span' | 'label';
variant?: 'subtitle' | 'body' | 'caption' | 'label' | Partial<Record<Breakpoint, 'subtitle' | 'body' | 'caption' | 'label'>>;
weight?: 'regular' | 'bold' | Partial<Record<Breakpoint, 'regular' | 'bold'>>;
color?: 'primary' | 'secondary' | 'danger' | 'warning' | 'success' | Partial<Record<Breakpoint, 'primary' | 'secondary' | 'danger' | 'warning' | 'success'>>;
truncate?: boolean;
className?: string;
style?: React.CSSProperties;
};

References: Breakpoint