Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-item-box-input
Advanced tools
Readme
This component implements an input box with a list of items inside the input box. It is possible to navigate the items with the arrow keys or by clicking on them. It is also possible to set trigger keys which fire a callback.
var items = Immutable.fromJS([
{ data: { id: 1, text: 'aaa' }, template: SomeComponent },
{ data: { id: 2, text: 'bbb' } }
]);
<ItemBox
items={items}
itemTemplate={DifferentTemplate}
value={this.state.value}
onChange={this.onChange}
triggerKeys={[KEY_CODE_COMMA]}
onTrigger={this.onTrigger}
/>
Each item is rendered with by a template. If the item specifies its own template, that template is used. Next, the box checks for a prop supplied default (itemTemplate). Finally, ItemBox has a dumb default implementation.
The text entry is done with an input element. Whenever the user types, it is passed up via the onChange prop. There is also an onTrigger prop that will trigger when a keyUp event (useful for tracking keys like tab or escape that do not trigger onChange).
2.1.1
2.0.0 updated to work with React 0.14.0-rc1
1.1.1 fixed to work in environments that lack browser layout abilities (tests/isomorphic).
defaultWidth
prop that will specify the width of the container for the item list when it cannot be determined from the browser1.1.0 added component level itemTemplate
prop to supply a default template.
1.0.0 initial release
FAQs
An input box with arrangable/removable items
The npm package react-item-box-input receives a total of 1 weekly downloads. As such, react-item-box-input popularity was classified as not popular.
We found that react-item-box-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.