@crossed/primitive
Version:
A universal & performant styling library for React Native, Next.js & React
27 lines • 1.38 kB
TypeScript
/**
* Copyright (c) Paymium.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root of this projects source tree.
*/
type ItemData = {
id: string;
};
declare const ButtonGroupCollection: {
readonly Provider: import("react").FC<{
children?: React.ReactNode;
}>;
readonly Slot: import("react").ForwardRefExoticComponent<Omit<import("..").SlotProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
readonly ItemSlot: import("react").ForwardRefExoticComponent<ItemData & {
children: React.ReactNode;
} & import("react").RefAttributes<HTMLSpanElement>>;
}, useButtonGroupCollection: () => () => ({
ref: import("react").RefObject<HTMLSpanElement>;
} & ItemData)[];
export declare const ButtonGroupCollectionItemSlot: import("react").ForwardRefExoticComponent<ItemData & {
children: React.ReactNode;
} & import("react").RefAttributes<HTMLSpanElement>>, ButtonGroupCollectionProvider: import("react").FC<{
children?: React.ReactNode;
}>, ButtonGroupCollectionSlot: import("react").ForwardRefExoticComponent<Omit<import("..").SlotProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
export { ButtonGroupCollection, useButtonGroupCollection };
//# sourceMappingURL=contextCollection.d.ts.map