Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/@radix-ui/react-toggle.ts>ToggleProps

Deno-powered framework for building business web apps
Go to Latest
interface ToggleProps
implements PrimitiveButtonProps
import { type ToggleProps } from "https://deno.land/x/netzo@0.3.91/deps/@radix-ui/react-toggle.ts";

Properties

optional
pressed: boolean

The controlled state of the toggle.

optional
defaultPressed: boolean

The state of the toggle when initially rendered. Use defaultPressed if you do not need to control the state of the toggle.

Methods

optional
onPressedChange(pressed: boolean): void

The callback that fires when the state of the toggle changes.