import { ToggleGroup as BaseToggleGroup } from "@base-ui/react/toggle-group"; import * as React from "react"; import { Toggle, type ToggleProps, type ToggleSize, type ToggleVariant } from "./toggle"; export interface ToggleGroupProps extends Omit, "className"> { /** * Additional CSS classes merged with the toggle-group root styles. * @default undefined */ className?: string; /** * Shared visual variant inherited by descendant toggle items when not explicitly overridden. * @default undefined */ variant?: ToggleVariant; /** * Shared size inherited by descendant toggle items when not explicitly overridden. * @default undefined */ size?: ToggleSize; } /** * Props for an individual toggle-group item. * * @remarks * Inherits the shared toggle API except for pressed-state props, which are controlled * by the surrounding {@link ToggleGroup}. */ export interface ToggleGroupItemProps extends Omit { } /** * Groups related toggles into a single multi-select or single-select control. * * @remarks * - Renders a `
` element by default * - Built on Base UI Toggle Group primitives * - Provides shared `size` and `variant` values to descendant items * * @example * ```tsx * * Bold * Italic * * ``` * * @see {@link https://base-ui.com/react/components/toggle-group | Base UI Toggle Group Docs} */ declare const ToggleGroup: React.ForwardRefExoticComponent & React.RefAttributes>; /** * Renders an individual toggle item within a toggle group. * * @remarks * - Renders a styled toggle button * - Built on the shared `Toggle` component and Base UI Toggle Group state * - Inherits `size` and `variant` from the nearest {@link ToggleGroup} when omitted * * @example * ```tsx * * Left * * ``` * * @see {@link https://base-ui.com/react/components/toggle-group | Base UI Toggle Group Docs} */ declare const ToggleGroupItem: React.ForwardRefExoticComponent & React.RefAttributes>; declare namespace ToggleGroup { type Props = ToggleGroupProps; type State = BaseToggleGroup.State; } declare namespace ToggleGroupItem { type Props = ToggleGroupItemProps; type State = Toggle.State; } export { ToggleGroup, ToggleGroupItem }; //# sourceMappingURL=toggle-group.d.ts.map