4.1.1 • Published 1 month ago

@sikt/sds-card v4.1.1

Weekly downloads
-
License
UNLICENSED
Repository
gitlab
Last release
1 month ago

@sikt/sds-card

Consume

npm i -s @sikt/sds-card

React

import { Card } from "@sikt/sds-card";
import "@sikt/sds-card/dist/index.css";
import "@sikt/sds-button/dist/index.css";

<Card
  image={
    <img
      src="https://url.to/image.type"
      alt="A descriptive text of what is shown in the image"
    />
  }
  overlineText="Overline"
  headingText="Heading"
  headingLevel="h2"
  children="Content"
  callToAction={<a href="https://url.to/destination">Call to action</a>}
/>;

Stylesheets & custom markup

Import stylesheet:

@import url("@sikt/sds-card");
@import url("@sikt/sds-button");

Create custom markup:

<div class="sds-card">...</div>
4.1.0

2 months ago

4.0.1

8 months ago

4.1.1

1 month ago

3.1.2

1 year ago

4.0.0

12 months ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.0

2 years ago

2.0.0

2 years ago