chore(BOOK-754): Moved ContentCard to design system and added stories

Approved-by: Bianca Widstam
Approved-by: Anton Gunnarsson
This commit is contained in:
Erik Tiekstra
2026-01-20 12:37:22 +00:00
parent 510f25a812
commit d7eed5b318
12 changed files with 172 additions and 172 deletions

View File

@@ -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: {