add-item
v1.0.1arrow_drop_downv1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
260
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
44 KB
AddItem is two buttons and textarea to write a new item, one button to add item and another one to remove all items.
1 contributor
Like
Install add-item as a package?
Copied
npm i @bit/joshk.basic-todo-app.add-item
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example 
modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout

chevron_left
chevron_right
AddItem ()
AddItem is two buttons and textarea to write a new item, one button to add item and another one to remove all items.
Example
Properties
Name | Type | Default value | Description |
---|---|---|---|
handleAddItem | function | null | handleAddItem is a function that can be called to get the text of a new item. |
handleRemoveAllItems | function | null | handleRemoveAllItems is a function that can be called to remove all items. |
showRemoveAllButton | bool | true | showRemoveAllButton determine if remove all items button will be display. |