Skip to main content

Type Alias: ToggleProps

ToggleProps = object

Defined in: jsx.ts:316

Props for the Toggle virtual element.

Used to declaratively add toggles to an AdwToggleGroup.

Example

<AdwToggleGroup>
<x.Toggle id="view-list" iconName="view-list-symbolic" />
<x.Toggle id="view-grid" iconName="view-grid-symbolic" />
<x.Toggle id="view-flow" label="Flow" />
</AdwToggleGroup>

Properties

enabled?

optional enabled: boolean

Defined in: jsx.ts:326

Whether the toggle is enabled


iconName?

optional iconName: string | null

Defined in: jsx.ts:322

Icon name to display


id?

optional id: string | null

Defined in: jsx.ts:318

Optional identifier for accessing toggle by id instead of index


label?

optional label: string | null

Defined in: jsx.ts:320

Label text to display


tooltip?

optional tooltip: string

Defined in: jsx.ts:324

Tooltip text (supports Pango markup)


useUnderline?

optional useUnderline: boolean

Defined in: jsx.ts:328

Whether underline in label indicates mnemonic