@sikt/sds-popover
v1.0.2
Published
## Consume
Downloads
214
Readme
@sikt/sds-popover
Consume
npm i -s @sikt/sds-popover
React
import { Popover } from "@sikt/sds-popover";
import "@sikt/sds-popover/dist/index.css";
<Popover target={<>Hello, World!</>}>Hello?</Popover>;
Stylesheets & custom markup
Import stylesheet:
@import url("@sikt/sds-popover");
Create custom markup:
<button class="sds-popover" popovertarget="id">Hello?</button>
<div class="sds-popover__target" id="id">Hello, World!</div>