Skip to content

useFeedback

jsxhook

map UI events to terminal audio cues (bell)

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

PropTypeDefaultDescription
initialT | undefinedInitial value
persistbooleanfalsePersist to storage
keystringStorage key
#hook#use-feedback