2.0.3 • Published 2 months ago

@sikt/sds-modal v2.0.3

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
2 months ago

@sikt/sds-modal

Consume

npm i -s @sikt/sds-modal

React

The component requires the following props:

  • open: This prop controls the visibility of the component. It determines whether the component is currently displayed or hidden.
  • onClose: This prop is used to handle the event when the component needs to be closed. It specifies the function that should be executed when the user interacts with the close functionality of the component.
  • heading: This prop is required to provide a heading for the component.
  • footer: buttons in modal footer
import { Modal } from "@sikt/sds-modal";
import "@sikt/sds-modal/dist/index.css";

<Modal
  open={true}
  onClose={handleClose}
  heading={headingText}
  ariaHideApp={false}
  footer={}
>
  <p>Modal Content</p>
</Modal>;

Stylesheets & custom markup

Import stylesheet:

@import url("@sikt/sds-modal");
2.0.3

2 months ago

2.0.2

5 months ago

2.0.1

5 months ago

2.0.0

7 months ago

1.0.1

8 months ago

1.0.0

8 months ago