overleaf/services/web/frontend/stories/feedback-badge.stories.tsx

36 lines
712 B
TypeScript
Raw Normal View History

import { ScopeDecorator } from './decorators/scope'
import { FeedbackBadge } from '@/shared/components/feedback-badge'
export const WithDefaultText = () => {
return (
<FeedbackBadge
url="https://example.com"
id="storybook-feedback-with-text"
/>
)
}
export const WithCustomText = () => {
const FeedbackContent = () => (
<>
This is an example.
<br />
Click to find out more
</>
)
return (
<FeedbackBadge
url="https://example.com"
id="storybook-feedback-with-text"
text={<FeedbackContent />}
/>
)
}
export default {
title: 'Shared / Components / Feedback Badge',
component: FeedbackBadge,
decorators: [ScopeDecorator],
}