API Reference > ui-components > Properties > withLinks withLinks FunctionConst If record has links, wraps stringValue in them, otherwise returns unchanged stringValue Optionally it can highlight text withLinks(record: PropertyRecord, stringValue: string | Promise<string>, highlight?: (text: string) => React.ReactNode): React.ReactNode | Promise<React.ReactNode> Parameter Type Description record PropertyRecord stringValue string | Promise<string> highlight (text: string) => React.ReactNode Returns - React.ReactNode | Promise<React.ReactNode> Defined in ui/components/src/ui-components/properties/LinkHandler.tsx Line 104 Last Updated: 13 June, 2024