Skip to content

helix / TextStyle

Interface: TextStyle

Defined in: core/frontend/nodes/tellraw_part.ts:9

The style fields a text component carries. Keys map 1:1 to the vanilla text-component fields, so codegen just spreads this object onto the JSON.

Properties

bold?

optional bold?: boolean

Defined in: core/frontend/nodes/tellraw_part.ts:10


color?

optional color?: string

Defined in: core/frontend/nodes/tellraw_part.ts:15


italic?

optional italic?: boolean

Defined in: core/frontend/nodes/tellraw_part.ts:11


obfuscated?

optional obfuscated?: boolean

Defined in: core/frontend/nodes/tellraw_part.ts:14


strikethrough?

optional strikethrough?: boolean

Defined in: core/frontend/nodes/tellraw_part.ts:13


underlined?

optional underlined?: boolean

Defined in: core/frontend/nodes/tellraw_part.ts:12

Released under the MIT License · Credits