Botón de micrófono que se convierte en ecualizador al grabar.
npx shadcn@latest add https://reactbits.dev/r/VoicePill-TS-TW
Para acciones frecuentes: confirmar, marcar, valorar. El feedback convierte un clic en una sensación.
| Prop | Tipo | Por defecto |
|---|---|---|
| accentColor | string | "#f5f5f5" |
| iconColor | string | "#a1a1aa" |
| background | string | "#27272a" |
| size | number | 28 |
| shape | 'pill' | 'rounded' | 'pill' |
| reach | number | 8 |
| showTime | boolean | true |
| waveform | boolean | true |
| slideToCancel | boolean | true |
| cancelDistance | number | 64 |
| attack | number | 40 |
| release | number | 240 |
| sensitivity | number | 1 |
| floor | number | 0.1 |
| openDuration | number | 200 |
| pressScale | number | 0.95 |
| mode | 'auto' | 'hold' | 'toggle' | 'auto' |
| holdAfter | number | 300 |
| reactive | 'simulated' | 'mic' | 'simulated' |
| disabled | boolean | false |
| ariaLabel | string | "Dictate" |
| onStart | ({ source }) => void | - |
| onStop | ({ reason, duration }) => void | - |
| className | string | "" |