// @ts-nocheck import * as mod from "./icon-button" import { create } from "../storybook/scaffold" const docs = `### Overview Compact icon-only button with size and variant control. Use \`Button\` for text labels and primary actions. ### API - Required: \`icon\` icon name. - Optional: \`size\`, \`iconSize\`, \`variant\`. - Inherits Kobalte Button props and native button attributes. ### Variants and states - Variants: primary, secondary, ghost. - Sizes: small, normal, large. ### Behavior - Icon size adapts to button size unless overridden. ### Accessibility - Provide \`aria-label\` when there is no visible text. ### Theming/tokens - Uses \`data-component="icon-button"\` and size/variant data attributes. ` const story = create({ title: "UI/IconButton", mod, args: { icon: "check", "aria-label": "Icon" } }) export default { title: "UI/IconButton", id: "components-icon-button", component: story.meta.component, tags: ["autodocs"], parameters: { docs: { description: { component: docs, }, }, }, } export const Basic = story.Basic export const Sizes = { render: () => (