UNPKG

wix-style-react

Version:
50 lines (46 loc) 1.06 kB
import React from 'react'; import DropdownLayout from 'wix-style-react/DropdownLayout'; var style = { display: 'inline-block', padding: '0 5px', width: '240px', lineHeight: '22px' }; var builder = function builder(id) { return 'builder option ' + id; }; var options = [{ id: 0, value: builder(0) }, { id: 1, value: builder(1) }, { id: 2, value: builder(2) }, { id: 3, value: builder(3) }, { id: 'footer', overrideStyle: true, value: React.createElement( 'div', { style: { height: '240px', padding: '20px', fontSize: '20', backgroundColor: '#F0F' } }, 'Click ', React.createElement( 'a', { href: 'http://www.wix.com' }, 'here' ), ' to go to wix.' ) }]; export default (function () { return React.createElement( 'div', null, React.createElement( 'div', { style: style }, 'builder function', React.createElement('br', null), React.createElement(DropdownLayout, { visible: true, options: options }) ) ); });