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

uxcore-select2

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uxcore-select2

select ui component for react

  • 0.3.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-50%
Maintainers
4
Weekly downloads
 
Created
Source

uxcore-select2 Dependency Status devDependency Status

TL;DR

uxcore-select2 ui component for react

setup develop environment
$ git clone https://github.com/uxcore/uxcore-select2
$ cd uxcore-select2
$ npm install
$ npm start

Usage

var Select = require('uxcore-select2');
<Select>
  <Option value="lucy">lucy</Option>
</Select>

demo

http://uxcore.github.io/select/

Props

Select props

参数说明类型默认值
value指定当前选中的条目string/Array
defaultValue指定默认选中的条目string/Array
multiple支持多选false
filterOption是否根据输入项进行筛选true
tags可以把随意输入的条目作为tag,输入项不需要与下拉选项匹配false
onSelect被选中时调用,参数为选中的option value值function
onDeselect取消选中时调用,参数为选中的option value值,仅在multiple或tags模式下生效function
onChange选中option,或input的value变化(combobox模式下)时,调用此函数function
allowClear显示清除按钮false
placeholder选择框默认文字string
searchPlaceholder搜索框默认文字string
optionFilterProp输入项过滤对应的 option 属性stringvalue
combobox输入框自动提示模式false
size选择框大小String
optionLabelProp选择 Option 的哪个 prop 作为选择框中的显示。string'children'
getPopupContainer弹出的菜单渲染在哪个容器中function(trigger:Node):Nodefunction(){return document.body;}
dropdownMatchSelectWidthdropdown 部分是否和 select 部分同宽booleantrue
dropdownClassNamedropdown 部分的定制类名string-
notFoundContent未找到选项时的提示文案stringnot found

Option props

参数说明类型默认值
disabled是否禁用Booleanfalse
key如果react需要你设置此项,此项值与value的值相同,然后可以省略value设置String
value默认根据此属性值进行筛选String-

OptGroup props

参数说明类型默认值
label组名String/React.Element
keyString-

Keywords

FAQs

Package last updated on 01 Sep 2016

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