File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
src/components/samplePreviews Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 11import 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
622export default SingleSelect ;
You can’t perform that action at this time.
0 commit comments