Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
React Native docs
ActionsReact Native

Selection bar

Show bulk actions for selected items.

Public APILumenSelectionBarReact Native

Native example

Use Selection bar

Pin it to the bottom of the list screen while items are selected.

Selection bar rendered in the Expo web renderer Lumen playground

Captured exampleExpo web renderer

Open interactive preview
Open the Selection bar demo
tsx
import { LumenButton, LumenSelectionBar } from '@santi020k/lumen-react-native'

interface FileSelectionBarProps {
  selected: number
  onArchive: () => void
  onClear: () => void
}

export function FileSelectionBar({ selected, onArchive, onClear }: FileSelectionBarProps) {
  return (
    <LumenSelectionBar
      count={selected}
      label={{ one: '{count} file selected', other: '{count} files selected' }}
      onClear={onClear}
      actions={
        <LumenButton intent="secondary" size="sm" onPress={onArchive}>
          Archive
        </LumenButton>
      }
    />
  )
}
React Native
Bulk file actions that appear while files are selected and announce the count politely.

Reference

Public API

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

APIValues or typeDefaultDescription
count / onClear / labelselected items / clear callback / count textrequired / none / {count} selectedPin it to the bottom of the list screen while items are selected.

Native behavior

Design and accessibility

When to use it

Pin it to the bottom of the list screen while items are selected.

Accessibility

Hidden at zero; count changes are announced politely.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose Web
React Native docsNative primitives