forked from auth0/styleguide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamples.js
More file actions
39 lines (36 loc) · 900 Bytes
/
Copy pathexamples.js
File metadata and controls
39 lines (36 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* eslint-disable no-console */
import React from 'react';
import Select from './';
const examples = [
{
component: (
<Select
options={[
{ label: 'Zoey Andrews', value: 'Zoey Andrews' },
{ label: 'Jerry Woods', value: 'Jerry Woods' },
{ label: 'Marion Garza', value: 'Marion Garza' }
]}
selected={2}
handleChange={(e) => { console.log(e.target.value); }}
label="Select user"
/>
),
code: (
`<Select
options={[
{ label: 'Zoey Andrews', value: 'Zoey Andrews' },
{ label: 'Jerry Woods', value: 'Jerry Woods' },
{ label: 'Marion Garza', value: 'Marion Garza' }
]}
selected={2}
handleChange={(e) => { console.log(e.target.value); }}
label="Select user"
/>`
),
center: true,
title: 'Default',
showTitle: false,
url: 'default'
}
];
export default examples;