UNPKG

@crossed/primitive

Version:

A universal & performant styling library for React Native, Next.js & React

26 lines 1.55 kB
/** * 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. */ import type { ComponentType } from 'react'; export { useContext as useButtonContext } from './context'; export { useContextGroup as useButtonGroupContext } from './contextGroup'; export { useButtonGroupCollection } from './contextCollection'; export declare const createButton: <GroupProps extends Record<string, any>, ButtonProps extends Record<string, any>, TextProps extends Record<string, any>, ElementProps extends Record<string, any>, IconProps extends Record<string, any>>(components: { Root: ComponentType<ButtonProps>; Group: ComponentType<GroupProps>; Text: ComponentType<TextProps>; Element: ComponentType<ElementProps>; Icon: ComponentType<IconProps>; }) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<ButtonProps> & import("react").RefAttributes<any>> & { Group: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<GroupProps & { orientation?: import("..").Orientation; }> & import("react").RefAttributes<any>>; Text: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<TextProps> & import("react").RefAttributes<any>>; Element: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<ElementProps> & import("react").RefAttributes<any>>; Icon: ComponentType<IconProps>; displayName: string; }; //# sourceMappingURL=index.d.ts.map