@dcentralab/inline-modal
v2.0.34
Published
## Instalation
Downloads
499
Readme
Networks icons
Instalation
npm install @dcentralab/inline-modal
or
yarn add @dcentralab/inline-modal
Getting started
Inline modal is used as a popper component so it wrapps some content with hidden content showed (on click) as modal or popover in same component position and dismissed on click away
Exports
{
IInlineModal
InlineModal,
}
InlineModal
import { InlineModal } from "@dcentralab/inline-modal";
return (
<InlineModal
content={
<>
Am hidden content. will be shown as a modal opened under main content
(on main contetn click) and will be dismissed on clickaway
</>
}
>
<>Am shown main content</>
</InlineModal>
);