chore(BOOK-754): Moved ContentCard to design system and added stories
Approved-by: Bianca Widstam Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -2,18 +2,47 @@ import type { Meta, StoryObj } from "@storybook/nextjs-vite"
|
||||
|
||||
import { fn } from "storybook/test"
|
||||
|
||||
import { MaterialIcon } from "../Icons/MaterialIcon/index.tsx"
|
||||
import { ChipButton } from "./ChipButton.tsx"
|
||||
import { config as chipButtonConfig } from "./variants"
|
||||
import { MaterialIcon } from "../Icons/MaterialIcon/index.tsx"
|
||||
|
||||
const meta: Meta<typeof ChipButton> = {
|
||||
title: "Core Components/ChipButton",
|
||||
component: ChipButton,
|
||||
argTypes: {
|
||||
children: {
|
||||
table: {
|
||||
disable: true,
|
||||
},
|
||||
},
|
||||
variant: {
|
||||
control: "select",
|
||||
type: "string",
|
||||
options: Object.keys(chipButtonConfig.variants.variant),
|
||||
table: {
|
||||
type: {
|
||||
summary: Object.keys(chipButtonConfig.variants.variant).join(" | "),
|
||||
},
|
||||
defaultValue: { summary: chipButtonConfig.defaultVariants.variant },
|
||||
},
|
||||
},
|
||||
size: {
|
||||
control: "select",
|
||||
options: Object.keys(chipButtonConfig.variants.size),
|
||||
table: {
|
||||
type: {
|
||||
summary: Object.keys(chipButtonConfig.variants.size).join(" | "),
|
||||
},
|
||||
defaultValue: { summary: "Large" },
|
||||
},
|
||||
description:
|
||||
"Sets the size of the ChipButton component. This only affects the `FilterRounded` variant.",
|
||||
},
|
||||
selected: {
|
||||
control: "boolean",
|
||||
table: {
|
||||
type: { summary: "boolean" },
|
||||
defaultValue: { summary: "false" },
|
||||
},
|
||||
},
|
||||
onPress: {
|
||||
table: {
|
||||
|
||||
Reference in New Issue
Block a user