Comments (8)
@charkour glad to see this package getting revived! Thank you for your work on this. :)
from react-reactions.
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.
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.
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.
@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.
@c0ncentus, check out PR #62.
This add's the ability to use custom reactions on the reaction bar
Also works with images.
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.
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.
#118 adds the custom reaction counter. It is released in v0.6.0. Thanks to @justemoilouise!
from react-reactions.
Related Issues (20)
- reaction labels are not showing while using overflow-x to hidden HOT 25
- Trouble styling some counters HOT 2
- More flexible Reaction Counter HOT 3
- Pass className to Selector HOT 11
- Dependency Dashboard
- Seems like a icon is missing HOT 3
- Closing the selector when clicked outside of the react-reactions component. HOT 6
- Add ref forwarding
- Slack add reaction shows empty box HOT 14
- Handle Slack fonts better HOT 1
- You didn't show in custom counter HOT 16
- Like not working on mobile touch HOT 8
- Hover on GithubCounter missing out on Chrome HOT 2
- Error when I import Reaction Counter HOT 3
- Changing color on background of reaction for slack counter HOT 2
- Reaction should have key and label to allow mutable text on tooltip to support i18n HOT 4
- Selector and Counter Bundlize as one HOT 4
- Make Slack selector opacity 1.0 by default, or allow custom styling HOT 1
- SlackSelector header/top bar category icons are missing HOT 2
- Slack Selector - Flag icons shows only letters on Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-reactions.