Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@mantine/core] add controlled search and per-list wording to transfer-list #2769

Merged
merged 2 commits into from Oct 22, 2022

Conversation

jvdsande
Copy link
Contributor

@jvdsande jvdsande commented Oct 21, 2022

As discussed on Discord, a few improvements to the TransferList component:

  • transferIcon and transferAllIcon for customising the icons. The props take a component with a reversed props to allow handling both lists correctly.
  • placeholder prop that is used in place of nothingFound if query is empty. If placeholder is omitted, nothingFound is used in its place
  • searchPlaceholder, nothingFound and placeholder can now take a tuple instead of a single value, to customize each panel independently. A single value can still be passed, in which case it's applied to both panels.
  • searchValues and onSearch props allowing to control the searches

@jvdsande jvdsande force-pushed the feat/transfer-list-improvements branch from 300d594 to 34d4a3a Compare October 21, 2022 16:42
@rtivital
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants