LinkFormatterThis is a React component
SourceThis is a React component
import { LinkFormatter } from "@prestojs/ui";
LinkFormatter(props)
Format a URL as a link.
This is the default formatter used for FileField and URLField
Parameter | Type | Description | |
---|---|---|---|
* | props | Any extra props are passed directly through to | |
props.blankLabel | ReactNode | What to render when Defaults to | |
props.children | React.ReactNode | The children to pass through to the | |
props.linkComponent | T | The link component to use. Defaults to | |
props.value | null|string | The URL to link to |