0.1.13 • Published 16 days ago

@synerise/ds-editable-items-list v0.1.13

Weekly downloads
-
License
ISC
Repository
github
Last release
16 days ago

id: editable-items-list

title: EditableItemsList

EditableItemsList UI Component

Installation

npm i @synerise/ds-editable-items-list
or
yarn add @synerise/ds-editable-items-list

Usage

import EditableItemsList from '@synerise/ds-editable-items-list'

<EditableItemsList />

Demo

API

PropertyDescriptionTypeDefault
renderRowElementFunction to render each row. Invoked with item index and item object.(index: number, item: T) => ReactElement-
itemsArray of items to be rendered, each should have a unique id.T[]-
addButtonLabelText or custom component for the "Add" button.string | ReactNode-
addButtonIconCustom icon for the "Add" button.ReactElement-
addButtonPropsAdditional props for the "Add" button. It can override default style.Partial<ButtonProps>-
onAddCallback function called when the "Add" button is clicked.() => void-
minRowLengthThe minimum number of rows to display.number1
maxRowLengthThe maximum number of rows allowed.number-
deleteTooltipTooltip text for the delete button.string-
onDeleteCallback function called when a row's delete button is clicked. It receives the ID and index of the row to delete.(id: string, index: number) => void-
0.1.13

16 days ago

0.1.12

22 days ago

0.1.11

24 days ago

0.1.10

2 months ago

0.1.9

2 months ago

0.1.8

2 months ago

0.1.7

2 months ago

0.1.6

3 months ago

0.1.5

3 months ago

0.1.4

3 months ago

0.1.3

4 months ago

0.1.2

4 months ago

0.1.1

5 months ago

0.1.0

5 months ago

0.0.1

5 months ago