Skip to content

Commit

Permalink
feat: add storybook implementation for feedback component
Browse files Browse the repository at this point in the history
Issue #345
  • Loading branch information
zhmurov authored and 3y3 committed Dec 16, 2024
1 parent 8895e3c commit d5e3578
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions demo/src/Components/Feedback/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import React from 'react';
import {Feedback as Component} from '@diplodoc/components';

type Args = {
isLiked: boolean;
isDisliked: boolean;
};

const FeedbackDemo = (args: Args) => {
const isLiked = args['isLiked'];
const isDisliked = args['isDisliked'];

return <Component isLiked={isLiked} isDisliked={isDisliked} />;
};

export default {
title: 'Components/Feedback',
component: FeedbackDemo,
argTypes: {
isLiked: {
control: 'boolean',
},
isDisliked: {
control: 'boolean',
},
},
};

export const Feedback = {
args: {
isLiked: false,
isDisliked: false,
},
};

0 comments on commit d5e3578

Please sign in to comment.