List components #31
@ -2,6 +2,7 @@ import { useState, useEffect } from 'react';
|
||||
import Button from '../components/Button/Button';
|
||||
import TextInput from '../components/TextInput/TextInput';
|
||||
import ListItem from '../components/ListItem/ListItem';
|
||||
import SearchResultList from '../components/SearchResultList/SearchResultList';
|
||||
import Combobox from '../components/Combobox/Combobox';
|
||||
import ListCard from '../components/ListCard/ListCard';
|
||||
import ParticipantPicker from '../components/ParticipantPicker/ParticipantPicker';
|
||||
@ -177,6 +178,28 @@ export default function ComponentLibrary() {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="mt-lg">
|
||||
<h2 className="mb-md">SearchResultList</h2>
|
||||
<div className="max-w-96">
|
||||
<SearchResultList
|
||||
options={peopleOptions}
|
||||
selectedValues={['3']}
|
||||
focusedIndex={1}
|
||||
noResultsText="Inga resultat"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="mt-lg">
|
||||
<h2 className="mb-md">SearchResultList - Empty</h2>
|
||||
<div className="max-w-96">
|
||||
<SearchResultList
|
||||
options={[]}
|
||||
noResultsText="Inga resultat"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="mt-lg">
|
||||
<h2 className="mb-md">Combobox - Single Select</h2>
|
||||
<div className="flex flex-col gap-md">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user