Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
AIAndroid

Source citation

Link a named source under an answer.

Public APILumenSourceCitationAndroid / Compose

Native example

Use Source citation

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

Source citation rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.*
import com.santi020k.lumen.*

@Composable
fun SourcesExample() {
    FlowRow(horizontalArrangement = Arrangement.spacedBy(LumenSpacing.Xs)) {
        LumenSourceCitation("Lumen docs", "https://lumen.santi020k.com/docs")
        LumenSourceCitation("Offline source", null)
    }
}
Android
A compact source chip that opens only safe absolute http or https URLs and otherwise renders as inert text.

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

React NativeApple / SwiftUI Web
Android docsCompose module