);
}
type LetterheadReadonlyTextFieldProps = {
label: string;
value: string;
placeholder?: string;
hint?: ReactNode;
type?: "text" | "email" | "password";
};
/**
* Renders a read-only text field.
*
* For an editable text field, use {@link LetterheadTextField} along with
* Ariakit form store.
*/
export function LetterheadReadonlyTextField(
props: LetterheadReadonlyTextFieldProps,
) {
return (
{props.hint &&
{props.hint}
}
);
}
type LetterheadSubmitErrorProps = {
name: string;
};
/**
* Renders an error message from form context.
*
* If there is no error message, will be completely omitted from DOM, so there
* is no need to guard it with an if statement.
*/
export function LetterheadSubmitError(props: LetterheadSubmitErrorProps) {
return ;
}
export function LetterheadHeader(props: { children: ReactNode }) {
return {props.children};
}
export function LetterheadFormActions(props: { children: ReactNode }) {
return (