mirror of
https://gitlab.com/MrFry/qmining-data-editor
synced 2026-04-28 19:27:37 +02:00
Complete project redo, got carried away, and forgot to commit during rewriting
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import React from 'react'
|
||||
|
||||
import styles from './searchBar.module.css'
|
||||
|
||||
export default function SearchBar(props) {
|
||||
const { onChange, value } = props
|
||||
return (
|
||||
<div className={styles.searchContainer}>
|
||||
<input
|
||||
placeholder="Keresés..."
|
||||
className={styles.searchBar}
|
||||
type="text"
|
||||
value={value}
|
||||
onChange={(e) => {
|
||||
onChange(e.target.value)
|
||||
}}
|
||||
/>
|
||||
<button
|
||||
onClick={() => {
|
||||
onChange('')
|
||||
}}
|
||||
className={styles.clearButton}
|
||||
>
|
||||
❌
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user