docs/components/input/RecordButton

RecordButton

Pulsing record/stop button.

import { RecordButton } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#More Examples

Recording

<RecordButton recording />

Disabled

<RecordButton disabled />

#Props

PropTypeDefaultDescription
recordingbooleanfalseWhether recording is currently active.
onToggle(recording: boolean) => voidCallback when recording state is toggled.
disabledbooleanfalseDisable the button.
size'sm' | 'md' | 'lg''md'Size variant.
classstringAdditional CSS classes.
styleimport('solid-js').JSX.CSSPropertiesInline styles.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-accent
  • --sk-bg-secondary
  • --sk-bg-tertiary
  • --sk-border
  • --sk-duration-fast
  • --sk-error
  • --sk-text-muted