@crossed/ui
Version:
A universal & performant styling library for React Native, Next.js & React
66 lines • 1.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 { type CrossedMethods } from '@crossed/styled';
import { type TextProps } from './Text';
export declare const anchorStyles: {
text: CrossedMethods<{
web: {
base: {
cursor: "pointer";
};
};
}>;
underline: CrossedMethods<{
':hover': {
textDecorationLine: "underline";
};
':active': {
textDecorationLine: "underline";
};
':focus': {
textDecorationLine: "underline";
};
}>;
primary: CrossedMethods<{
base: {
color: "#9088F7" | "#4737FF";
textDecorationColor: "#9088F7" | "#4737FF";
};
}>;
default: CrossedMethods<{
base: {
color: "black" | "white";
textDecorationColor: "black" | "white";
};
}>;
};
/**
* Properties for an Anchor component, derived from TextProps with some modifications.
*/
export type AnchorProps = Omit<TextProps, 'style'> & {
/**
* Optional style for the anchor, which can combine crossed methods.
*
* @type {CrossedMethods<any, any>}
*/
style?: CrossedMethods<any, any>;
/**
* Indicates whether the anchor should use the "primary" style. Default is true.
*
* @type {boolean}
* @default true
*/
primary?: boolean;
/**
* The target URL the anchor points to.
*
* @type {string}
*/
href?: string;
};
export declare const Anchor: import("react").ForwardRefExoticComponent<Omit<AnchorProps, "ref"> & import("react").RefAttributes<Text>>;
//# sourceMappingURL=Anchor.d.ts.map