Skip to content

fix(site): fix pill spinner size #11368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add story for loading
  • Loading branch information
BrunoQuaresma committed Jan 2, 2024
commit de79ae8c541bf768569f7baad32f4ddb2d3fbc93
20 changes: 14 additions & 6 deletions site/src/components/Pill/Pill.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
import { Pill } from "./Pill";
import { Pill, PillSpinner } from "./Pill";
import type { Meta, StoryObj } from "@storybook/react";
import InfoOutlined from "@mui/icons-material/InfoOutlined";

const meta: Meta<typeof Pill> = {
title: "components/Pill",
component: Pill,
args: {
children: "Default",
},
};

export default meta;
type Story = StoryObj<typeof Pill>;

export const Default: Story = {
args: {
children: "Default",
},
};
export const Default: Story = {};

export const Danger: Story = {
args: {
Expand Down Expand Up @@ -72,3 +71,12 @@ export const WithIcon: Story = {
icon: <InfoOutlined />,
},
};

export const WithSpinner: Story = {
args: {
icon: <PillSpinner />,
},
parameters: {
chromatic: { delay: 700 },
},
};