mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 05:38:34 +00:00
12 lines
291 B
JavaScript
12 lines
291 B
JavaScript
import cx from '@src/cx.mjs';
|
|
|
|
export function Textbox({ onChange, className, ...inputProps }) {
|
|
return (
|
|
<input
|
|
className={cx('p-1 bg-background rounded-md my-2 border-foreground', className)}
|
|
onChange={(e) => onChange(e.target.value)}
|
|
{...inputProps}
|
|
/>
|
|
);
|
|
}
|