Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
netodolele.com.br
/
wp-content
/
plugins
/
envato-elements
/
src
/
js
/
react
/
components
/
Search
/
Editing: TextInput.stories.jsx
import React, { useState } from 'react' import TextInput from './TextInput' export default { title: 'search/Text Input' } const TextInputHooked = () => { const [dummyState, setDummyState] = useState('Cats') return ( <> <TextInput searchParams={{ text: dummyState }} onSearchSubmitted={({ text }) => { setDummyState(text) }} /> <pre>Submitted Search Text: {dummyState}</pre> </> ) } export const textInput = () => <TextInputHooked />
Save
Cancel