Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

modal

v0.1.2arrow_drop_down
v0.1.2
v0.1.0
STATUS
Passing
DOWNLOADS
28
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 months ago
SIZE
19 KB
1 contributor
Use modal in your project ?
Copied
npm i @bit/ans.base-ui.modal
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
revert changes
reload
toggle layout
maximize
modifieddraft
<Modal visible={true} actions={[ <Button secondary> Cancel </Button>, <Button>Complete</Button> ]} > Hello World </Modal>;
modifieddraft
chevron_left
chevron_right
Properties
NameTypeDescription
visible
bool

Whether the modal is visible or not

onHide
function

Handle the hide event

closeIcon
bool

Whether to show an X in the corner

actions
node | array

Any content to show at the bottom of the modal