useFeedback
jsxhook
map UI events to terminal audio cues (bell)
Terminal
$termuijs render use-feedback
Installation
$ bunx termuijs add use-feedback
Copies the source into src/components/use-feedback/ and installs .
Usage
ts
import { useFeedback } from '@termuijs/jsx'ts
const { value, set, reset } = useFeedback({
initial: undefined,
})API Reference
useFeedback
| Prop | Type | Default | Description |
|---|---|---|---|
initial | T | undefined | — | Initial value |
persist | boolean | false | Persist to storage |
key | string | — | Storage key |