Skip to content

Commit e477fe7

Browse files
committed
Replace screenshot with SingleSelect component
1 parent bdaed5c commit e477fe7

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed
Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
import React from 'react';
2-
import { KolImage } from '@public-ui/react';
2+
import { KolSingleSelect } from '@public-ui/react';
3+
import { Option, StencilUnknown } from '@public-ui/components';
34

4-
const SingleSelect = () => <KolImage _src="/assets/samples/single-select.png" _alt="" _sizes="20vw" />;
5+
const COUNTRY_OPTIONS = [
6+
{ label: 'Dänemark', value: 'dk' },
7+
{ label: 'Deutschland', value: 'de' },
8+
{ label: 'Dominica', value: 'dm' },
9+
];
10+
11+
const SingleSelect = () => (
12+
<KolSingleSelect
13+
_touched
14+
_label="Label"
15+
_placeholder="Placeholder"
16+
_required
17+
_options={COUNTRY_OPTIONS as Option<StencilUnknown>[]}
18+
_value={'Deutschland'}
19+
/>
20+
);
521

622
export default SingleSelect;
-13.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)