Skip to main content

Type Alias: LevelBarOffsetProps

LevelBarOffsetProps = object

Defined in: jsx.ts:307

Props for the LevelBarOffset virtual element.

Used to declaratively add offset thresholds to a GtkLevelBar. Each offset defines a named threshold that triggers visual style changes.

Example

<GtkLevelBar>
<x.LevelBarOffset id="low" value={0.25} />
<x.LevelBarOffset id="high" value={0.75} />
<x.LevelBarOffset id="full" value={1.0} />
</GtkLevelBar>

Properties

id

id: string

Defined in: jsx.ts:309

Unique identifier for this offset (used for CSS styling)


value

value: number

Defined in: jsx.ts:311

The threshold value (0.0 to 1.0 for continuous mode, or integer for discrete)