Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
React Native docs
AIReact Native

Source citation

Link a named source under an answer.

Public APILumenSourceCitationReact Native

Native example

Use Source citation

Unsafe or relative links render inert text. Route in-app links yourself.

Source citation rendered in the Expo web renderer Lumen playground

Captured exampleExpo web renderer

Open interactive preview
Open the Source citation demo
tsx
import { LumenSourceCitation } from '@santi020k/lumen-react-native'
import { View } from 'react-native'

export function Sources() {
  return (
    <View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }}>
      <LumenSourceCitation href="https://lumen.santi020k.com/docs" label="Lumen docs" />
      <LumenSourceCitation href="https://reactnative.dev/docs/accessibility" label="React Native" />
      <LumenSourceCitation href="/notes/launch" label="Local notes" />
    </View>
  )
}
React Native
Source chips under an answer; the local path stays an inert chip.

Reference

Public API

The primary shared and platform-specific options exposed by LumenSourceCitation.

APIValues or typeDefaultDescription
label / hrefsource name / absolute URLrequired / requiredUnsafe or relative links render inert text.

Native behavior

Design and accessibility

When to use it

Unsafe or relative links render inert text. Route in-app links yourself.

Accessibility

Link role only for safe http and https URLs.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose Web
React Native docsNative primitives