mirror of
https://github.com/fergalmoran/turnstone.git
synced 2026-01-04 16:15:39 +00:00
534 B
534 B
turnstone
Install
npm install --save turnstone
Usage
import React from 'react'
import Turnstone from 'turnstone'
import fruits from './data'
const App = () => {
return (
<Turnstone
autoFocus={true}
data={fruits}
searchType={'startswith'}
debounceWait={0}
maxItems={10}
noItemsMessage={'No matching fruit found'}
placeholder={'Type something fruity'}
/>
)
}
export default App
License
MIT © tomsouthall