waveterm/frontend/app/element/magnify.stories.tsx
Evan Simkowitz e29cb2debe
Make magnify icon always visible, transition from magnify to minimize (#197)
I'm updating the magnify button to be always visible and animate a
transition between being a "Magnify" button and a "Minimize" button.

This also cleans up some text shrinking behavior in the block frame
header so the end icons are always visible.

Also fixes some height discrepancies in the block frame header.

Also implements a `prefers-reduced-motion` query for the tilelayout and
block frame to ensure transitions are not set if the user does not want
them.
2024-08-05 16:13:26 -07:00

26 lines
465 B
TypeScript

import type { Meta, StoryObj } from "@storybook/react";
import { MagnifyIcon } from "./magnify";
const meta = {
title: "Icons/Magnify",
component: MagnifyIcon,
args: {
enabled: true,
},
} satisfies Meta<typeof MagnifyIcon>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Enabled: Story = {
args: {
enabled: true,
},
};
export const Disabled: Story = {
args: {
enabled: false,
},
};