ActionArea
ActionArea UI Component
Installation
npm i @synerise/ds-action-area
or
yarn add @synerise/ds-action-area
Usage
import ActionArea from '@synerise/ds-action-area'
<ActionArea description="Description" label="Label" actionLabel="Define" action={() => {}} />
Demo
API
Property | Description | Type | Default |
---|---|---|---|
action | Function called when user clicks on ActionButton | Function | - |
actionLabel | Label of action button | React.ReactNode | - |
description | Description of ActionArea | React.ReactNode | - |
label | Label of ActionArea | React.ReactNode | - |
buttonProps | optional additional button props | see ds-button | - |