Welcome UI logo
FOUNDATIONSCOMPONENTSBLOG650+
10.0.0

Menu

    Actions

    • Button
    • ButtonGroup
    • Close Button
    • Link

    Data display

    • Accordion
    • Avatar
    • Badge
    • Card
    • Swiper
    • Table
    • Tag
    • VisuallyHidden

    Feedback

    • Alert
    • StickyNote

      NEW

    • Toast

    Forms

    • Checkbox
    • DatePicker
    • DateTimePicker
    • Field
    • FileDrop
    • FileUpload
    • Hint
    • InputText
    • Label
    • PasswordInput
    • Radio
    • RadioGroup
    • RadioTab
    • Search
    • Select
    • Slider
    • Textarea
    • TimePicker
    • Toggle

    Icons & logo

    • Icon
    • IconStamp

      NEW

    • Logo
    • VariantIcon
    • WelcomeLoader

    Layout

    • AspectRatio
    • Loader
    • Window

      NEW

    Navigation

    • Breadcrumb
    • DropdownMenu
    • Pagination
    • Stepper

      NEW

    • Tabs

    Overlay

    • Drawer
    • Modal
    • Popover
    • Tooltip

    Typography

    • Text

    Utilities

    • Grid background

Overview

Props

Link

The Link component is a navigational element that allows users to navigate to internal or external pages. It supports variants, accessibility attributes, and can wrap text or other components to apply consistent styling and behavior. Useful for creating an intuitive, interconnected user experience.

Source
Github
import { Link } from 'welcome-ui/Link'
const Example = () => {
return <Link href="https://www.welcometothejungle.com">Link</Link>
}
export default Example

Examples

A flexible link component that can receive an as prop to render a custom component (like React Router’s Link) while keeping styling and accessibility intact.

Variants

Two variants are available: primary (default) and secondary.

Github

Disabled

Use the disabled prop to disable interaction and add the appropriate ARIA attribute.

Github

Sizes

Four sizes are available: xs, sm, md (default) and lg.

Github

External link

Set isExternal to true to automatically add an <ExternalLinkIcon /> and apply hover effects.

Github

Inline links

If your link contains multiple lines of text, you can use multiline to control underline behavior.

Github

Security

When using target="_blank", the rel="noopener noreferrer" attribute is automatically added for security.

Github

Text component

By default, Link wraps text nodes and certain elements in a styled Wrapper.
You can force text styling to inherit from the parent using this wrapper.

Github

Underlined by default

Link underlines by default all string children, regardless of the parent element. This includes:

  • Plain text nodes
  • Text components
  • Any element (span, p, div, etc.) whose children is a single string
  • Components with as="span"
  • Components with data-wui-link prop
Github

Usage with React Router

Github
Close buttonAccordion

On this page

  • Definition
  • Examples
    • Variants
    • Disabled
    • Sizes
    • External link
    • Inline links
    • Security
    • Text component
    • Underlined by default
    • Usage with React Router
Made with by
Welcome to the jungle logo

Documentations

  • Foundations
  • Components
  • Source code

Updates

  • Releases
  • Issues

Community

  • Github
  • Twitter
  • Medium
  • Jobs