npm i -s @sikt/sds-{form,select}
import { Select } from "@sikt/sds-select";
import "@sikt/sds-form/dist/index.css";
import "@sikt/sds-select/dist/index.css";
<Select />;
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>