New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@clayui/multi-select

Package Overview
Dependencies
Maintainers
3
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clayui/multi-select

ClayMultiSelect component

  • 3.6.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
905
decreased by-14.22%
Maintainers
3
Weekly downloads
 
Created
Source

title: 'Multi Select' description: 'Multi select is the field type that allows writing text to create “tags” that are represented in the shape of labels.' lexiconDefinition: 'https://liferay.design/lexicon/core-components/forms/selector/' packageNpm: '@clayui/multi-select' sibling: 'docs/components/css-text-input-multi-select.html'

import { MultiSelectInput, MultiSelectInputWithAutocomplete, MultiSelectInputWithCustomAutocomplete, MultiSelectInputWithSelectButton, MultiSelectInputWithValidation, } from '$packages/clay-multi-select/docs/index';

Multi Select is an aggregate component of the @clayui/form package, consisting of a high-level written above a <ClayInput /> that provides the ability to create tags.

Composing

<ClayMultiSelect /> enables you to make compositions to achieve your expected results, as this component is distributed only in a low level component, this increases flexibility and you can create many possibilities but it comes with a price tag... you may want to get close to the Lexicon specifications and will have to compose with some of the other components to get there, let's detail it further below.

Autocomplete

Usually a MultiSelect has an autocomplete to help the user choose existing tags. You can use the sourceItems API to achieve this result.

Select Button

According to the Lexicon specification a Select button can be grouped with MultiSelect to allow tag data to come from elsewhere. You can achieve this result by composing with <ClayForm.Group />, <ClayInput.GroupItem /> and <ClayButton /> .

Validation

An input needs validation so you can add some composition props with <ClayInput /> and <ClayForm /> to get the result.

Custom Autocomplete

To customize Autocomplete content to stylize to your needs and also have filter control, you can use the menuRenderer API.

API

[APITable "clay-multi-select/src/index.tsx"]

Keywords

FAQs

Package last updated on 26 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc