Docs Logo

  • GitHub
  • NPM
  • Components

- NeuReaction

NeuReaction is a component which you can use as a reaction button.

Props

This component accepts 2 props:

  1. size - size of reaction button (in px)
  2. children - This represents children of NeuReaction component. You do not need to pass this prop explicilty to NeuReaction component. Instead just wrap child components in NeuReaction opening and closing tags.
import { NeuReaction } from 'neumorphic-ui';
class Example extends Component {
render () {
return (
<NeuReaction ><img src={like} width="30px" height="30px"></NeuReaction>
)
}
}