Components
Link
Documentation for the Link component.
Link
Preview
The Link component is built with React Aria and styled using StyleX.
Import
import { Link } from '@moul-dev/ui';Usage
Here is a basic example of how to use the Link component:
import { Link } from '@moul-dev/ui';
export default function Example() {
return (
<Link>
{/* Component content */}
</Link>
);
}Props
Link Props
Prop
Type
Default className: react-aria-Link
| Render Prop | CSS Selector |
|---|---|
isCurrent Whether the link is the current item. | [data-current] |
isHovered Whether the link is hovered. | [data-hovered] |
isPressed Whether the link is pressed. | [data-pressed] |
isFocused Whether the link is focused. | [data-focused] |
isFocusVisible Whether the link is keyboard focused. | [data-focus-visible] |
isDisabled Whether the link is disabled. | [data-disabled] |