import type { ToggleGroupItemProps, ToggleGroupItemPropsWithoutHTML, ToggleGroupRootPropsWithoutHTML } from "../toggle-group/types.js"; import type { Orientation } from "../../shared/index.js"; import type { WithChild, Without } from "../../internal/types.js"; import type { BitsPrimitiveAnchorAttributes, BitsPrimitiveButtonAttributes, BitsPrimitiveDivAttributes } from "../../shared/attributes.js"; export type ToolbarRootPropsWithoutHTML = WithChild<{ /** * The orientation of the toolbar. This determines how keyboard navigation * will work within the toolbar. * * @defaultValue "horizontal" */ orientation?: Orientation; /** * Whether or not to loop through the toolbar items when navigating with the * keyboard. * * @defaultValue true */ loop?: boolean; }>; export type ToolbarRootProps = ToolbarRootPropsWithoutHTML & Without; export type ToolbarGroupPropsWithoutHTML = Omit; export type ToolbarGroupProps = ToolbarGroupPropsWithoutHTML & Without; export type ToolbarGroupItemPropsWithoutHTML = ToggleGroupItemPropsWithoutHTML; export type ToolbarGroupItemProps = ToggleGroupItemProps; export type ToolbarButtonPropsWithoutHTML = WithChild<{ /** * Whether the button is disabled or not. */ disabled?: boolean | null | undefined; }>; export type ToolbarButtonProps = ToolbarButtonPropsWithoutHTML & Without; export type ToolbarLinkPropsWithoutHTML = WithChild; export type ToolbarLinkProps = ToolbarLinkPropsWithoutHTML & Without;