Skip to main content

Type Alias: ToggleProps

ToggleProps = object

Defined in: jsx.ts:328

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:338

Whether the toggle is enabled


iconName?

optional iconName: string | null

Defined in: jsx.ts:334

Icon name to display


id?

optional id: string | null

Defined in: jsx.ts:330

Optional identifier for accessing toggle by id instead of index


label?

optional label: string | null

Defined in: jsx.ts:332

Label text to display


tooltip?

optional tooltip: string

Defined in: jsx.ts:336

Tooltip text (supports Pango markup)


useUnderline?

optional useUnderline: boolean

Defined in: jsx.ts:340

Whether underline in label indicates mnemonic