Skip to main content

Interface: TextSpan

Defined in: attributes/text/span.ts:13

A styled run of text. Spans may nest — children inherit any style fields the parent set and override the ones they redeclare (Flutter-style TextSpan). A span with children and no text acts as a pure style scope; a span with both contributes its text before its children.

Properties

children?

optional children?: TextSpan[]

Defined in: attributes/text/span.ts:22


fill?

optional fill?: ChainableFill

Defined in: attributes/text/span.ts:20


fontFamily?

optional fontFamily?: string

Defined in: attributes/text/span.ts:15


fontSize?

optional fontSize?: number

Defined in: attributes/text/span.ts:16


fontStyle?

optional fontStyle?: FontStyle

Defined in: attributes/text/span.ts:18


fontWeight?

optional fontWeight?: number

Defined in: attributes/text/span.ts:17


letterSpacing?

optional letterSpacing?: number

Defined in: attributes/text/span.ts:19


stroke?

optional stroke?: StrokeProp | StrokeProp[]

Defined in: attributes/text/span.ts:21


text?

optional text?: string

Defined in: attributes/text/span.ts:14