GHHG10/CodeServer / opencode /packages /ui /src /components /inline-input.stories.tsx
GHHG10's picture
download
raw
1.02 kB
// @ts-nocheck
import * as mod from "./inline-input"
import { create } from "../storybook/scaffold"
const docs = `### Overview
Compact inline input for short values.
Use inside text or table rows for quick edits.
### API
- Optional: \`width\` to set a fixed width.
- Accepts standard input props.
### Variants and states
- No built-in variants; style via class or width.
### Behavior
- Uses inline width when provided.
### Accessibility
- Provide a label or aria-label when used standalone.
### Theming/tokens
- Uses \`data-component="inline-input"\`.
`
const story = create({ title: "UI/InlineInput", mod, args: { placeholder: "Type...", value: "Inline" } })
export default {
title: "UI/InlineInput",
id: "components-inline-input",
component: story.meta.component,
tags: ["autodocs"],
parameters: {
docs: {
description: {
component: docs,
},
},
},
}
export const Basic = story.Basic
export const FixedWidth = {
args: {
value: "80px",
width: "80px",
},
}

Xet Storage Details

Size:
1.02 kB
·
Xet hash:
f60df672dd9421add71f8a77fe4bb3f9c7e9c9186f30198765801e7ecc2b22ad

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.