ChatReaction

Emoji reaction pill with count and active state, typically displayed below chat messages for team-style reactions.

Preview

Live previewCustomize theme

Static

Interactive

Import

tsx
import { ChatReaction } from '@velocityuikit/velocityui'

Props

PropTypeDefaultDescription
emojistring—The emoji character to display.
countnumber1Number of reactions.
activebooleanfalseWhether the current user has reacted.
onClick() => void—Called when the reaction is clicked.

Examples

Reactions

tsx
import { ChatReaction } from '@velocityuikit/velocityui'

export default function Example() {
  return (
    <div style={{ display: 'flex', gap: '0.25rem' }}>
      <ChatReaction emoji="👍" count={3} active />
      <ChatReaction emoji="❤️" count={1} />
      <ChatReaction emoji="😂" count={2} />
    </div>
  )
}

Theming

Apply a named theme class to <body> or any parent element. All VelocityUI components inside that element will automatically adopt its colors, shadows, and effects. Combine with a density modifier for complete control:

html
/* Pick any named theme */
<body class="vui-theme-ocean">

/* Add a density modifier (optional) */
<body class="vui-theme-midnight vui-density-compact">
<body class="vui-theme-construction vui-density-spacious">

/* Available themes */
/* default  midnight  ocean  dark-cyan  tangerine */
/* construction  glass  soft  high-contrast  monochrome-red */

/* Available densities */
/* vui-density-compact  vui-density-comfortable  vui-density-spacious */