diff --git a/apps/vr-tests-react-components/src/stories/CalendarCompat.stories.tsx b/apps/vr-tests-react-components/src/stories/CalendarCompat.stories.tsx
index bdc461c3f61990..3c0fd36d2a7581 100644
--- a/apps/vr-tests-react-components/src/stories/CalendarCompat.stories.tsx
+++ b/apps/vr-tests-react-components/src/stories/CalendarCompat.stories.tsx
@@ -1,10 +1,10 @@
import * as React from 'react';
-import { storiesOf } from '@storybook/react';
-import { TestWrapperDecorator } from '../utilities/TestWrapperDecorator';
+import type { Meta, StoryFn } from '@storybook/react';
import { Steps, StoryWright } from 'storywright';
import { Calendar as CalendarBase } from '@fluentui/react-calendar-compat';
import { ArrowLeftRegular, ArrowRightRegular, DismissCircleRegular } from '@fluentui/react-icons';
import type { CalendarProps } from '@fluentui/react-calendar-compat';
+import { getStoryVariant, RTL, TestWrapperDecorator } from '../utilities';
const Calendar = (props: CalendarProps) => {
const today = new Date('3/15/2023');
@@ -12,27 +12,39 @@ const Calendar = (props: CalendarProps) => {
return ;
};
-storiesOf('Calendar Compat', module)
- .addDecorator(TestWrapperDecorator)
- .addDecorator(story => (
- {story()}
- ))
- .addStory('Default', () => , { includeRtl: true })
- .addStory('Custom icons', () => (
- ,
- downNavigation: ,
- dismiss: ,
- },
- }}
- calendarMonthProps={{
- navigationIcons: {
- upNavigation: ,
- downNavigation: ,
- dismiss: ,
- },
- }}
- />
- ));
+export default {
+ title: 'Calendar Compat',
+ component: CalendarBase,
+ decorators: [
+ TestWrapperDecorator,
+ story => (
+ {story()}
+ ),
+ ],
+} satisfies Meta;
+
+type Story = StoryFn;
+
+export const Default: Story = () => ;
+
+export const CustomIcons: Story = () => (
+ ,
+ downNavigation: ,
+ dismiss: ,
+ },
+ }}
+ calendarMonthProps={{
+ navigationIcons: {
+ upNavigation: ,
+ downNavigation: ,
+ dismiss: ,
+ },
+ }}
+ />
+);
+CustomIcons.storyName = 'Custom icons';
+
+export const CustomIconsRTL = getStoryVariant(CustomIcons, RTL);