Components

Component

ReactionButton

Compact toggle button for lightweight reactions.

ReactReact Native3 props
PreviewReact

Imports

import { ReactionButton } from "@hozorica/hods-react/reaction-button";
import { ReactionButton } from "@hozorica/hods-react-native/reaction-button";

Props

PropTypeDescription
pressed / defaultPressedbooleanControlled and uncontrolled pressed state.
onPressedChange(pressed) => voidPressed state callback.
size / loading / disabledsmall|xsmall / boolean / booleanVisual and interaction states.

Platform Support

React

aria-pressed button with pressed/defaultPressed and loading.

React Native

Alias over native toggle button behavior.

Usage

<ReactionButton defaultPressed>좋아요</ReactionButton>

Notes

  • Use for social/reaction toggles.
  • Use ToggleButton for generic filter toggles.