@crossed/ui
Version:
A universal & performant styling library for React Native, Next.js & React
42 lines • 1.98 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.
*/
/**
* CardRoot is a forwardRef component that renders a YBox element with
* customizable styles and properties.
*
* @param {object} props - The properties passed to the component.
* @param {string} [props.size='auto'] - Defines the size of the card, with a default value of 'auto'. The size can affect spacing styles.
* @param {any} ref - A React ref to be forwarded to the YBox component.
*
* @returns {JSX.Element} A styled YBox component based on the provided properties.
*/
export declare const CardRoot: 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> & {
size?: "auto" | "xs" | "sm" | "md" | "lg";
}, "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> & {
size?: "auto" | "xs" | "sm" | "md" | "lg";
}, "ref">) & import("react").RefAttributes<unknown>>;
//# sourceMappingURL=Root.d.ts.map