Blossom UI

Transfer list

Transfer list component to move items between two lists, with search, check all and keyboard support.

How to use it

Run npx @blossomui/react add transfer-list, or copy src/components/UI/TransferList/TransferList.tsx into your React project and import it.

import { TransferList } from './components/ui/TransferList'

Props

TransferItem

PropTypeDescription
id (required)string
label (required)string
disabledboolean

TransferListLabels

PropTypeDescription
available (required)stringTitle of the list of items that were not chosen.
selected (required)stringTitle of the list of chosen items.
moveRight (required)stringAccessible name of the button that moves the checked items to the chosen list.
moveLeft (required)stringAccessible name of the button that moves the checked items back.
moveAllRight (required)string
moveAllLeft (required)string
search (required)string
empty (required)stringText of a list without items.
count (required)(checked: number, total: number) => stringText under the title of each list, for example "2 of 5 selected".

TransferListProps

PropTypeDescription
labelsPartial<TransferListLabels>Texts of the component. Pass only the ones you want to change, for example to translate it.
items (required)TransferItem[]Every item, in both lists.
valuestring[]Controlled ids of the chosen items. Use together with `onChange`.
defaultValuestring[]Ids of the chosen items when the component is not controlled.
onChange(value: string[]) => void
searchablebooleanShow a search field over each list.
colorstringAccent color of the checks: any CSS color. Without it the component uses `--blossom-accent`.
heightnumberHeight of each list in pixels.
classNamestring

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree