@crossed/ui
Version:
A universal & performant styling library for React Native, Next.js & React
47 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.
*/
import { ComponentProps } from 'react';
import { Box } from '../layout/Box';
declare const badgeStyles: {
default: import("@crossed/styled").CrossedMethods<{
base: {
padding: 8;
marginTop: number;
borderRadius: number;
backgroundColor: "#F4F2FC" | "#141430";
};
}>;
success: import("@crossed/styled").CrossedMethods<{
base: {
backgroundColor: "#EDFFF6";
};
}>;
warning: import("@crossed/styled").CrossedMethods<{
base: {
backgroundColor: "#FFF0E6";
};
}>;
error: import("@crossed/styled").CrossedMethods<{
base: {
backgroundColor: "#FFE6E6";
};
}>;
info: import("@crossed/styled").CrossedMethods<{
base: {
backgroundColor: "#EEF6FF";
};
}>;
};
type Variants = Exclude<keyof typeof badgeStyles, 'default'>;
type BadgeProps = ComponentProps<typeof Box> & {
variant?: Variants;
};
export declare const Badge: import("react").NamedExoticComponent<BadgeProps> & {
Text: import("react").NamedExoticComponent<import("../typography/Text").TextProps>;
};
export {};
//# sourceMappingURL=Badge.d.ts.map