APIDemo

@alinea/editor

export function Fields(
props: FieldsProps
): Element
export function Input<V, M>(
props: InputProps<V, M>
): Element
export function InputForm(
props: InputFormProps
): Element
/**
Label for an input */
export const InputLabel: ForwardRefExoticComponent<
{
asLabel: boolean
collection: boolean
empty: boolean
focused: boolean
help: Label
icon: ComponentType<
{}
>
inline: boolean
label: Label
optional: boolean
size:
| "small"
| "medium"
| "large"
width: number
}
&
{
children: ReactNode
}
& RefAttributes<HTMLElement>>
export namespace InputState {
}
export const LabelHeader: NamedExoticComponent<LabelHeaderProps>
export function useField<V, M>(
field: Field<V, M, V>,
initialValue: V
): {input: {}, value: V}
export function useInput<T>(
path: InputState<T>
): T