checkbox

package
v0.1.62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package checkbox contains Material 3 Checkbox components.

Reference: Checkbox(https://m3.material.io/components/checkbox/overview) Specs: [Checkbox Specs](https://m3.material.io/components/checkbox/specs)

Index

Constants

View Source
const Material3CheckboxNodeID = "Material3Checkbox"

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckboxOption

type CheckboxOption func(*CheckboxOptions)

func WithModifier

func WithModifier(m ui.Modifier) CheckboxOption

type CheckboxOptions

type CheckboxOptions struct {
	Modifier ui.Modifier
}

func DefaultCheckboxOptions

func DefaultCheckboxOptions() CheckboxOptions

type Composable

type Composable = api.Composable

func Checkbox

func Checkbox(
	checked bool,
	onCheckedChange func(bool),
	options ...CheckboxOption,
) Composable

Checkbox creates a Material3 checkbox.

type Composer

type Composer = api.Composer

type HandlerWrapper

type HandlerWrapper struct {
	Func func(bool)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL