Files
zeekay 464e1eece0 State a version once
A version written into a manifest is written into every manifest that wants it,
which is how eslint came to exist in a hundred and four forms across this estate
and how a package came to resolve twice at run time. The catalog moves the number
out of the manifest: a manifest names the package, the workspace names the
version.

Four are held below their latest because the newer release cannot be used, and
the reason is recorded rather than the version alone: @noble/hashes 2 renamed
every subpath the web3 stack imports, @splinetool/runtime 2 depends on a package
that was never published, @dynamic-labs 5.4.1 the same, and react-resizable-panels
3 points its types condition at the bundle.
2026-09-15 11:45:32 -07:00

56 lines
1.0 KiB
Plaintext

import { Meta, Controls, Primary } from '@storybook/addon-docs/blocks';
import * as InputStories from './input.stories';
<Meta of={InputStories} />
# Input
A flexible text input component with support for prefixes, suffixes, and a dedicated password variant.
## How to use
### Basic usage
```tsx
import { Input } from '@signozhq/ui';
export default function MyComponent() {
return <Input placeholder="Enter text" />;
}
```
### With prefix and suffix
```tsx
import { Input } from '@signozhq/ui';
export default function MyComponent() {
return (
<Input
prefix={<span style={{ fontSize: 12, lineHeight: 1.33333 }}>@</span>}
suffix={<button type="button">Clear</button>}
placeholder="username"
/>
);
}
```
### Password input
```tsx
import { Input } from '@signozhq/ui';
export default function MyComponent() {
return <Input.Password placeholder="Enter password" />;
}
```
This following example shows a basic input (using the default story):
<Primary />
## Input & Input.Password Props
<Controls of={InputStories.Default} />