Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
interface ToggleProps
implements PrimitiveButtonProps
import { type ToggleProps } from "https://deno.land/x/netzo@0.4.78/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.