Appearance
helix / ComponentValue
Class: ComponentValue
Defined in: core/values/component.ts:11
A text component (component / style). Accepts a plain string (rendered as {"text":"..."}) or a raw JSON-serialisable object. For rich, chained text (colors, click/hover, scores) use the tellraw builder's TellrawText.
Component("hi") -> '{"text":"hi"}' Component({ text: "hi", bold: true })
Implements
Constructors
Constructor
new ComponentValue(
value):ComponentValue
Defined in: core/values/component.ts:12
Parameters
value
string | object
Returns
ComponentValue
Methods
render()
render():
string
Defined in: core/values/component.ts:14
Returns
string