Skip to main content

Type Alias: GtkToggleButtonProps

GtkToggleButtonProps = Omit<GtkButtonProps, "onNotify"> & object

Defined in: generated/jsx.ts:10639

Props for the GtkToggleButton widget.

Type Declaration

NameTypeDescriptionDefined in
active?booleanIf the toggle button should be pressed in.generated/jsx.ts:10641
children?ReactNode-generated/jsx.ts:10646
group?Gtk.ToggleButtonThe toggle button whose group this widget belongs to.generated/jsx.ts:10643
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:10652
onToggled()?(self) => void | nullEmitted whenever the GtkToggleButton's state is changed.generated/jsx.ts:10645
ref?Ref<Gtk.ToggleButton>-generated/jsx.ts:10653