Skip to main content

TextProps

Home > @backstage/canon > TextProps

Signature:

export interface TextProps 

Properties

Property

Modifiers

Type

Description

children

ReactNode

className?

string

(Optional)

color?

'primary' | 'secondary' | 'danger' | 'warning' | 'success' | Partial<Record<Breakpoint, 'primary' | 'secondary' | 'danger' | 'warning' | 'success'>>

(Optional)

style?

CSSProperties

(Optional)

variant?

'subtitle' | 'body' | 'caption' | 'label' | Partial<Record<Breakpoint, 'subtitle' | 'body' | 'caption' | 'label'>>

(Optional)

weight?

'regular' | 'bold' | Partial<Record<Breakpoint, 'regular' | 'bold'>>

(Optional)