Files
Desktop/ts/components/fun/FunSticker.dom.stories.tsx
Jamie b405e3d83d Prepare for upgrade to React 19
Co-authored-by: ayumi-signal <ayumi@signal.org>
2025-12-23 13:42:56 -08:00

37 lines
997 B
TypeScript

// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import type { Meta } from '@storybook/react';
import { FunSticker, type FunStickerProps } from './FunSticker.dom.js';
export default {
title: 'Components/Fun/FunSticker',
} satisfies Meta<FunStickerProps>;
export function Default(): React.JSX.Element {
return (
<>
<p>with reduce motion:</p>
{/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */}
<div tabIndex={0}>
<FunSticker
src="/fixtures/giphy-GVNvOUpeYmI7e.gif"
// src="/fixtures/kitten-1-64-64.jpg"
size={68}
role="img"
aria-label="Sticker"
/>
</div>
<p>without reduce motion:</p>
<FunSticker
src="/fixtures/giphy-GVNvOUpeYmI7e.gif"
// src="/fixtures/kitten-1-64-64.jpg"
size={68}
role="img"
aria-label="Sticker"
ignoreReducedMotion
/>
</>
);
}