:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import type { Meta, StoryObj } from '@storybook/react'
import { EmojiPickerPopover, EmojiPickerPopoverProps } from 'lib/components/EmojiPicker/EmojiPickerPopover'
type Story = StoryObj<EmojiPickerPopoverProps>
const meta: Meta<EmojiPickerPopoverProps> = {
title: 'Lemon UI/Emoji Picker Popover',
component: EmojiPickerPopover,
tags: ['autodocs'],
parameters: {
docs: {
description: {
component: 'A component that opens a popover emoji picker.',
},
},
},
argTypes: {
onSelect: {
description: 'The function to run when a user chooses an emoji',
},
defaultOpen: {
description: 'Whether to start with the popover open - defaults to false',
},
},
render: (props) => {
return (
<div className="w-[325px] h-[370px] border rounded">
<EmojiPickerPopover {...props} />
</div>
)
},
}
export default meta
export const Default: Story = {
args: {},
}
export const Open: Story = {
args: {
defaultOpen: true,
},
}