Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
Data displayAndroid

Attachment list

Group attachments in one framed list.

Public APILumenAttachmentListAndroid / Compose

Native example

Use Attachment list

Use it for message or form attachments.

Attachment list rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
import androidx.compose.runtime.*
import com.santi020k.lumen.*

@Composable
fun ProjectFiles() {
    var files by remember { mutableStateOf(listOf("Brand guidelines.pdf", "Interview notes.md")) }
    LumenAttachmentList(label = "Project files") {
        files.forEach { file ->
            key(file) {
                LumenAttachment(
                    name = file,
                    meta = "Added today",
                    trailing = { LumenIconButton(LumenIconName.X, "Remove $file", onClick = { files = files - file }, size = LumenControlSize.Sm) }
                )
            }
        }
    }
}
Android
A named, framed list of attachments separated by hairlines, each with its own remove action.

Reference

Public API

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

APIValues or typeDefaultDescription
label / attachmentslist name / rowsrequired / requiredUse it for message or form attachments.

Native behavior

Design and accessibility

When to use it

Use it for message or form attachments.

Accessibility

Named list; each row keeps its own actions.

Shared component

Available on other platforms

React NativeApple / SwiftUI Web
Android docsCompose module