-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.jsx
More file actions
23 lines (21 loc) · 753 Bytes
/
demo.jsx
File metadata and controls
23 lines (21 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from 'react'
import DropdownSelectorBtn from './index'
const ITEMS = [
{ label: 'one', value: 1 },
{ label: 'two', value: 2 },
{ label: 'three', value: 3 }
]
export default class DropdownSelectorDemo extends React.Component {
render() {
const onSelect = o => console.log('selected', o)
return <div>
<h1>patchkit-dropdown-selector</h1>
<section className="demo-dropdown-selector">
<header><DropdownSelectorBtn label="Current" initValue=1 items="..."></header>
<div className="content" style={{minHeight: '100px'}}>
<DropdownSelectorBtn className="btn highlighted" items={ITEMS} label="Current" initValue={1} onSelect={onSelect} />
</div>
</section>
</div>
}
}