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
32
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
A year ago
SIZE
19 KB
1 contributor
Install modal as a package?
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
React Native
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';
toggle layout
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
(required)
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