Configuration Label Widget

Defined in src/index.ts. Options and defaults:

  • Content:

    • Key: content

    • Type: string (required)

    • Purpose: Text rendered by the label.

    • Default: "Label"

  • Font family:

    • Key: fontFamily

    • Type: string

    • Default: "sans-serif"

  • Font size:

    • Key: fontSize

    • Type: string (CSS size)

    • Default: "16px"

  • Text color:

    • Key: color

    • Type: string (CSS color)

    • Default: "var(--text-color)"

  • Alignment:

    • Key: textAlign

    • Type: 'left'|'center'|'right'|'justify'

    • Default: "left"

  • Custom CSS:

    • Key: customCss

    • Type: string

    • Purpose: Additional CSS applied to the root element.

    • Default: ""

Quick recipe

{
  "content": "Observing Mode",
  "fontFamily": "Inter, sans-serif",
  "fontSize": "20px",
  "color": "#334155",
  "textAlign": "center"
}