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

3.0.1 • Public • Published

@sikt/sds-select

Consume

npm i -s @sikt/sds-{form,select}

React

import { Select } from "@sikt/sds-select";
import "@sikt/sds-form/dist/index.css";
import "@sikt/sds-select/dist/index.css";

<Select />;

Stylesheets & custom markup

Import stylesheet:

@import url("@sikt/sds-form");
@import url("@sikt/sds-select");

Create custom markup:

<div class="sds-select">
  <label for="id">
    <div class="sds-select__label">Label</div>
    <div class="sds-select__select">
      <select
        id="id"
        class="sds-select__select-input"
        aria-describedby="id-described"
      >
        <option>Option</option>
      </select>
    </div>
    <svg class="sds-icon sds-select__select-button">...</svg>
  </label>
  <div id="id-described" class="sds-select__help-text">Help text</div>
</div>

Readme

Keywords

none

Package Sidebar

Install

npm i @sikt/sds-select

Weekly Downloads

280

Version

3.0.1

License

UNLICENSED

Unpacked Size

28.9 kB

Total Files

11

Last publish

Collaborators

  • andreassolberg
  • 42tte
  • andreassolberg2