UNPKG

481 BJavaScriptView Raw
1import React from 'react'
2
3export class Panel extends React.Component {
4 render() {
5 const { props } = this
6
7 return (
8 <div
9 aria-labelledby={props['aria-labelledby']}
10 role={props.role}
11 ref={props._ref}
12 style={{
13 height: '100%',
14 overflowY: 'auto',
15 ...props.style,
16 }}
17 >
18 {props.children}
19 </div>
20 )
21 }
22}
23
24export { snapX, snapY } from './utils/snap.js'
25export const wrap = i => i