import { useState } from 'react';
import { PixelInput } from './PixelInput';
export function Default() {
return (
);
}
export function Controlled() {
const [value, setValue] = useState('');
return (
setValue(e.target.value)}
tone="cyan"
/>
);
}
export function Uncontrolled() {
return (
);
}
export function Tones() {
return (
);
}
export function Sizes() {
return (
);
}
export function Surfaces() {
return (
);
}
export function WithPrefixSuffix() {
return (
$}
suffix={USD}
defaultValue="42"
/>
?}
placeholder="Find anything"
/>
);
}
export function WithAddons() {
return (
https://}
addonRight={.xyz}
defaultValue="pxlkit"
/>
);
}
export function Clearable() {
const [value, setValue] = useState('clear me');
return (
setValue(e.target.value)}
onClear={() => setValue('')}
/>
);
}
export function Loading() {
return (
);
}
export function Disabled() {
return (
);
}
export function WithError() {
return (
);
}
export function WithCharCount() {
const [value, setValue] = useState('Hello');
return (
setValue(e.target.value)}
showCount={{ max: 80 }}
hint="Keep it short"
/>
);
}