mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-12 22:15:27 -04:00
12 lines
326 B
React
12 lines
326 B
React
import cx from '@src/cx.mjs';
|
|
|
|
export function Textbox({ onChange, className, ...inputProps }) {
|
|
return (
|
|
<input
|
|
className={cx('p-2 bg-background rounded-md border-foreground text-foreground placeholder-foreground', className)}
|
|
onChange={(e) => onChange(e.target.value)}
|
|
{...inputProps}
|
|
/>
|
|
);
|
|
}
|