UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

33 lines 1.53 kB
import { ToggleGroupSize, ToggleGroupVariant } from "./type.mjs"; import { styles } from "./style.mjs"; import { CSSProperties, ComponentProps, FC, ReactNode } from "react"; import { Toggle } from "@base-ui/react/toggle"; import { ToggleGroup } from "@base-ui/react/toggle-group"; //#region src/base-ui/ToggleGroup/atoms.d.ts type ToggleGroupRootProps<Value extends string = string> = Omit<ComponentProps<typeof ToggleGroup<Value>>, 'className' | 'render'> & { className?: string; variant?: ToggleGroupVariant; }; declare const ToggleGroupRoot: { <Value extends string = string>({ className, variant, ...rest }: ToggleGroupRootProps<Value>): import("react").JSX.Element; displayName: string; }; type ToggleGroupItemProps<Value extends string = string> = Omit<ComponentProps<typeof Toggle<Value>>, 'className' | 'render'> & { className?: string; size?: ToggleGroupSize; variant?: ToggleGroupVariant; }; declare const ToggleGroupItem: { <Value extends string = string>({ className, size, variant, ...rest }: ToggleGroupItemProps<Value>): import("react").JSX.Element; displayName: string; }; interface SimpleSpanProps { children?: ReactNode; className?: string; style?: CSSProperties; } declare const ToggleGroupItemIcon: FC<SimpleSpanProps>; declare const ToggleGroupItemLabel: FC<SimpleSpanProps>; //#endregion export { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupItemProps, ToggleGroupRoot, ToggleGroupRootProps, styles as toggleGroupStyles }; //# sourceMappingURL=atoms.d.mts.map