components

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCounterControls

func CreateCounterControls(props CounterControlsProps) (bubbly.Component, error)

CreateCounterControls creates a component with action buttons This demonstrates: - Callback props for parent communication - Using BubblyUI Button components - Event handling pattern

func CreateCounterDisplay

func CreateCounterDisplay(props CounterDisplayProps) (bubbly.Component, error)

CreateCounterDisplay creates a component that displays the current count This demonstrates: - Component factory pattern - Props-based composition - Using BubblyUI Card component - Exposing state for dev tools inspection

Types

type CounterControlsProps

type CounterControlsProps struct {
	OnIncrement func()
	OnDecrement func()
	OnReset     func()
}

CounterControlsProps defines the props for CounterControls component

type CounterDisplayProps

type CounterDisplayProps struct {
	Count  *bubbly.Ref[int]
	IsEven *bubbly.Computed[interface{}]
}

CounterDisplayProps defines the props for CounterDisplay component

Jump to

Keyboard shortcuts

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