Props
label?: stringOptional field label rendered above the input.
error?: stringValidation message that also marks the input as invalid.
hint?: stringHelper text shown below the input when no error is present.
...InputHTMLAttributes<HTMLInputElement>Supports standard input props such as type, value, placeholder, required, and onChange.
Example
Input.tsx
import { useState } from 'react';
import { Input, Button } from '@meteorack/sdk-react';
export function WhiteLabelField() {
const [brandName, setBrandName] = useState('');
return (
<div style={{ display: 'flex', flexDirection: 'column', gap: '12px' }}>
<Input
label="Brand Name"
placeholder="My Agency"
hint="Shown in the Meteorack admin shell."
value={brandName}
onChange={(e) => setBrandName(e.target.value)}
/>
<Button variant="primary">Save</Button>
</div>
);
}