@sikt/sds-details
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@sikt/sds-details

Consume

npm i -s @sikt/sds-details

React

import { Details } from "@sikt/sds-details";
import "@sikt/sds-details/dist/index.css";

<Details summary="Hello">Hello, World!</Details>;

Stylesheets & custom markup

Import stylesheet:

@import url("@sikt/sds-details");

Create custom markup:

<details class="sds-details">
  <summary class="sds-details__summary">
    Hello
    <div>
      <svg className="sds-details__icon" />
    </div>
  </summary>
  <div class="sds-details__content">Hello, World!</div>
</details>

Readme

Keywords

none

Package Sidebar

Install

npm i @sikt/sds-details

Weekly Downloads

46

Version

1.0.2

License

UNLICENSED

Unpacked Size

16.9 kB

Total Files

11

Last publish

Collaborators

  • andreassolberg
  • 42tte
  • andreassolberg2