Git Product home page Git Product logo

Comments (8)

crieggalder avatar crieggalder commented on June 19, 2024 2

@charkour glad to see this package getting revived! Thank you for your work on this. :)

from react-reactions.

c0ncentus avatar c0ncentus commented on June 19, 2024 1

Facebook Selector is the most I think 👍 . this will be awesome with GightubCounter et GithubSelector.
Thanks for planning to support this awesome package.

awesome script + awesome feature = awesome UI and awesome package ❤️ .

from react-reactions.

charkour avatar charkour commented on June 19, 2024 1

Sounds good! I'm almost done with the Typescript port and then I'll plan on adding custom support for the Facebook Selector and Counter first.

Thanks for your excitement!

from react-reactions.

charkour avatar charkour commented on June 19, 2024

Hey @c0ncentus,

Which selector or counter are you hoping to customize? I plan to make the Facebook selector and counter customizable (after I finish porting it to Typescript. Currently about halfway done). Thanks for reaching out.

from react-reactions.

charkour avatar charkour commented on June 19, 2024

@c0ncentus, I'm trying to design a way to add custom images to the selectors. I think creating a custom selector component would be best.

Do you have suggestions on how to implement it?

Sorry this feature is taking a long time.

from react-reactions.

charkour avatar charkour commented on June 19, 2024

@c0ncentus, check out PR #62.

This add's the ability to use custom reactions on the reaction bar

image

Also works with images.

image

Useage:

Reaction Bar Selector

import React from 'react';
import { ReactionBarSelector } from '@charkour/react-reactions';

const Component = () => {
  return <ReactionBarSelector />;
};

Props:

iconSize?: number — String icon pixel size. Defaults to 38px
reactions?: Reaction[]; — Array of Reaction objects {label: "haha", node: <div>😄</div>} to display.
onSelect: (label: string) => void; — Function callback when emoji is selected

Note: When passing an <img> as a Reaction. Specify the iconSize as the height of the image. <img height={iconSize} src="img-source" />

from react-reactions.

charkour avatar charkour commented on June 19, 2024

This feature is live on 0.5.0. Let me know what you think and I'll work on adding more custom components.

from react-reactions.

charkour avatar charkour commented on June 19, 2024

#118 adds the custom reaction counter. It is released in v0.6.0. Thanks to @justemoilouise!

from react-reactions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.