OpenHands/openhands-ui/components/interactive-chip/InteractiveChip.stories.tsx
Mislav Lukach 764077ef3d
Feat/create UI dir (#9462)
Co-authored-by: amanape <83104063+amanape@users.noreply.github.com>
2025-07-03 13:26:19 +00:00

45 lines
925 B
TypeScript

import type { Meta, StoryObj } from "@storybook/react-vite";
import { InteractiveChip, type InteractiveChipProps } from "./InteractiveChip";
import { Icon } from "../icon/Icon";
const meta = {
title: "Components/InteractiveChip",
component: InteractiveChip,
parameters: {
layout: "centered",
},
tags: ["autodocs"],
} satisfies Meta<typeof InteractiveChip>;
export default meta;
type Story = StoryObj<typeof meta>;
const InteractiveChipComponent = (props: InteractiveChipProps) => {
return (
<InteractiveChip
{...props}
start={<Icon icon="Check" />}
end={<Icon icon="X" />}
>
Click me
</InteractiveChip>
);
};
export const Elevated: Story = {
args: {
type: "elevated",
disabled: false,
},
render: InteractiveChipComponent,
};
export const Filled: Story = {
args: {
type: "filled",
disabled: false,
},
render: InteractiveChipComponent,
};