0.3.0 • Published 5 years ago

@pndr/action-sheet v0.3.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

ActionSheet

npm package

Used for making a choice between a set of options on a mobile device.

Getting started

npm install @cmds/action-sheet --save

Prop Types

PropertyTypeRequired?Description
onCloseFunctionTriggers after a user clicks an option or cancels the action sheet.
optionsArrayAn array of Option. Options the user can choose from.

Option

PropertyTypeRequired?Description
titleStringTitle describing the option.
onClickFunctionTriggers when the user click the option.
variantOneOfCan either be undefined or danger (makes the option red)
strongBooleanWhether to make the option appear strong (bold).

More information

This component is designed and developed as part of Cosmos Design System.