Source code for meerkat.interactive.app.src.lib.component.core.toggle

from meerkat.interactive.app.src.lib.component.abstract import Component
from meerkat.interactive.endpoint import Endpoint
from meerkat.interactive.event import EventInterface


class OnChangeToggle(EventInterface):
    value: bool


[docs]class Toggle(Component): value: bool = False on_change: Endpoint[OnChangeToggle] = None