Skip to content

triggerFeedback

jsxhook

Fire feedback for a given interaction type

Installation

$ bunx termuijs add trigger-feedback

Copies the source into src/components/trigger-feedback/ and installs .

Usage

ts
import { triggerFeedback } from '@termuijs/jsx'
ts
const { value, set, reset } = triggerFeedback({
  initial: undefined,
})

API Reference

triggerFeedback

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