/* * (c) Copyright 2026 Palantir Technologies Inc. All rights reserved. */ import type { Meta, StoryObj } from "@storybook/react-vite"; import { Flex } from "@blueprintjs/labs"; import { Label } from "../html/html"; import { InputGroup } from "./inputGroup"; const meta: Meta = { title: "Core/Form/Label", component: Label, decorators: [ Story => ( ), ], tags: ["autodocs"], } satisfies Meta; export default meta; type Story = StoryObj; /** * A basic label with text content. */ export const Default: Story = { args: { children: "Label text", }, }; /** * Labels are commonly used alongside input elements. */ export const WithInput: Story = { name: "With Input", args: { children: "Label text", }, render: ({ children, ...args }) => ( ), }; /** * Labels support disabled styling through the `bp-disabled` class. */ export const StateExample: Story = { name: "State", render: () => ( ), }; /** * Interactive playground. */ export const Playground: Story = { render: ({ children, ...args }) => ( ), args: { children: "Field label", }, };