atrilabs-engine
atrilabs-engine copied to clipboard
Add a Comments Component
The signature of time picker component should be as follows:-
type CommentsProps = {
styles: React.CSSProperties;
custom: {
comments: {
//Name of the guy commenting.
name: string;
//The time at which reply was done
dateTime: string;
//The comment text
text: string;
replies: {
// Name of the guy replying.
name: string;
// URL to redirect where the item will redirect.
reply: string;
}[];
}[]
};
};
export const CommentsProps: React.FC<CommentsProps> = React.forwardRef(
(ref, props) => {
return <div></div>;
}
);
The design reference-
Check this before contribute
Bumping up this prior discussion around why we try to avoid using libraries while adding a new component to the framework: https://github.com/Atri-Labs/atrilabs-engine/discussions/216
It's not just about using the library. The link can be used as a help for contribute.
Yes, of course and thanks for sharing the link.
I just wanted to clarify since our first instinct is usually to use a library - a few PRs last week had to be redone because of this reason.
@all-contributors please add @corners2wall for research
@darshitac11 mam plz assign me for this issue
@darshitac11 Can you please assign this issue to me. It would also be great if I can get some direction on how or where to get started with this as it's my first time contributing to open source. Thank you!