@mersenneab/builder-plugin-search-input

1.0.0 • Public • Published

builder-plugin-search-input

Search input plugin for Builder

Usage

withBuilder(Component, {
	name: 'Component',
	inputs: [
		{
			name: 'data',
			type: 'search-input',
			options: {
				url: 'https://unicorn.com/search?query={{value}}',
				wait: 500,
				mapper: `result => result.map(data => {
					return {
						label: data.name,
						value: data
					};
				})`
			}
		},
		{}
	]
});

Readme

Keywords

none

Package Sidebar

Install

npm i @mersenneab/builder-plugin-search-input

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

198 kB

Total Files

5

Last publish

Collaborators

  • kevva