LinkFormatter
This is a React component

Source
import { LinkFormatter } from "@prestojs/ui";
LinkFormatter(props)

Format a URL as a link.

This is the default formatter used for FileField and URLField

ParameterTypeDescription
*props

Any extra props are passed directly through to linkComponent

props.blankLabelReactNode

What to render when value is null, undefined or an empty string

Defaults to null

props.childrenReact.ReactNode

The children to pass through to the linkComponent.

props.linkComponentT

The link component to use. Defaults to a.

props.valuenull|string

The URL to link to

Examples