@crossed/ui
Version:
A universal & performant styling library for React Native, Next.js & React
50 lines • 2.8 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.
*/
import { ButtonText, ButtonTextProps } from './Text';
import { ButtonGroup, ButtonGroupProps } from './Group';
import { Box as ButtonElement } from '../../layout/Box';
import { ButtonIcon } from './Icon';
export * from './styles';
export * from './types';
export declare const Button: import("react").ForwardRefExoticComponent<import("./types").ButtonProps & import("react").RefAttributes<import("react-native").View>> & {
Group: import("react").ForwardRefExoticComponent<(Omit<{
pressable: true;
} & {
children?: import("react").ReactNode | undefined;
} & {
style?: import("@crossed/styled").CrossedMethods<any>;
space?: null | keyof typeof import("../..").gapStyles;
center?: boolean;
justifyContent?: keyof typeof import("../..").justifyContentStyle;
alignItems?: keyof typeof import("../..").alignItemsStyle;
alignSelf?: keyof typeof import("../..").alignSelfStyle;
} & Omit<import("react-native").PressableProps, "children" | "style"> & import("react").RefAttributes<import("react-native").View> & {
orientation?: import("@crossed/primitive").Orientation;
}, "ref"> | Omit<{
pressable?: never | false;
} & {
style?: import("@crossed/styled").CrossedMethods<any>;
space?: null | keyof typeof import("../..").gapStyles;
center?: boolean;
justifyContent?: keyof typeof import("../..").justifyContentStyle;
alignItems?: keyof typeof import("../..").alignItemsStyle;
alignSelf?: keyof typeof import("../..").alignSelfStyle;
} & Omit<import("react-native").ViewProps, "style"> & import("react").RefAttributes<import("react-native").View> & {
orientation?: import("@crossed/primitive").Orientation;
}, "ref">) & import("react").RefAttributes<import("react-native").View>>;
Text: import("react").ForwardRefExoticComponent<Omit<import("../..").TextProps, "ref"> & import("react").RefAttributes<import("react-native").Text>>;
Element: import("react").ForwardRefExoticComponent<import("../../layout/Box").BoxPressableProps | import("../../layout/Box").BoxViewProps>;
Icon: {
({ children, style, }: import("react").PropsWithChildren<{
style?: import("@crossed/styled").CrossedMethods<any>;
}>): string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>;
displayName: string;
};
};
export { ButtonText, ButtonElement, ButtonGroup, ButtonIcon };
export type { ButtonTextProps, ButtonGroupProps };
//# sourceMappingURL=index.d.ts.map