Usage
import { Link } from "lambda-ui-components";
export default function App() {
return (
<Link href="#" color="primary">
Click me
</Link>
);
}Link component allows users to navigate to another page or resource.
Experiment with all the properties of the Link component in real time.
The URL the link points to.
The text content of the link.
Adds an icon to the link.
Color scheme of the link.
Visual appearance of the link.
Style variant when type is 'button'.
Position of the icon relative to the label.
Horizontal alignment when type is 'button'.
Size of the link.
Border radius when type is 'button'.
Disables the link and shows a loading state. Works only when type is 'button'.
Disables the link.
import { Link } from "lambda-ui-components";
export default function App() {
return (
<Link href="#" color="primary">
Click me
</Link>
);
}Prop | Default | Type |
|---|---|---|
href | undefined | string |
type | "default" | "default" | "button" |
label | undefined | string |
icon | undefined | ReactNode |
disabled | false | boolean |
variant | "solid" | "classic" | "solid" | "outline" | "dashed" | "soft" | "subtle" | "text" | "unstyled" |
color | "primary" | "neutral" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" |
size | "medium" | "tiny" | "small" | "medium" | "large" |
radius | "small" | "none" | "tiny" | "small" | "medium" | "large" | "full" |
iconPosition | "left" | "left" | "right" |
justify | "center" | "start" | "center" | "end" |