Aller au contenu principal

Variable: components

const components: object

Type declaration

Accordion

Accordion: ComponentType<LunaticBaseProps<string> & LunaticExtraProps & object>

CheckboxBoolean()

CheckboxBoolean: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersLunaticBaseProps<boolean> & LunaticExtraProps & object

Returns

Element

CheckboxGroup()

CheckboxGroup: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersLunaticBaseProps<Record<string, null | boolean>> & LunaticExtraProps & object

Returns

Element

CheckboxOne()

CheckboxOne: (__namedParameters) => Element

Checkbox acting as a radio (only one option can be checked at a time)

Parameters

ParameterType
__namedParametersLunaticBaseProps<null | string> & LunaticExtraProps & object

Returns

Element

Datepicker()

Datepicker: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersLunaticBaseProps<null | string> & LunaticExtraProps & object

Returns

Element

Dropdown: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersLunaticBaseProps<null | string> & LunaticExtraProps & object

Returns

Element

Duration()

Duration: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersLunaticBaseProps<null | string> & LunaticExtraProps & object

Returns

Element

FilterDescription()

FilterDescription: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersProps

Returns

Element

Input()

Input: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersLunaticBaseProps<string> & LunaticExtraProps & object

Returns

Element

InputNumber()

InputNumber: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersLunaticBaseProps<null | number> & LunaticExtraProps & object

Returns

Element

Loop()

Loop: (__namedParameters) => null | Element

Loop without specific markup (stack of subcomponents)

Parameters

ParameterType
__namedParametersLunaticBaseProps<unknown> & LunaticExtraProps & object

Returns

null | Element

PairwiseLinks: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersOmit<LunaticBaseProps<unknown>, "value"> & LunaticExtraProps & object

Returns

Element

Question()

Question: (props) => Element

Surround a question giving additional context with label / description / declarations

Parameters

ParameterType
propsPick<LunaticBaseProps<unknown>, "label" | "description" | "declarations" | "id" | "propsTransformer" | "errors" | "disabled" | "readOnly"> & LunaticExtraProps & object

Returns

Element

Radio

Radio: ComponentType<LunaticBaseProps<null | string> & LunaticExtraProps & object>

RosterForLoop()

RosterForLoop: (props) => null | Element

Loop displayed as a table

Parameters

ParameterType
propsLunaticBaseProps<unknown> & LunaticExtraProps & object

Returns

null | Element

Roundabout()

Roundabout: (props) => Element

Roundabout is a special loop component where the user can select the iteration to go to

Parameters

ParameterType
propsLunaticBaseProps<string> & LunaticExtraProps & object

Returns

Element

Sequence

Sequence: ComponentType<Pick<LunaticBaseProps<string>, "label" | "description" | "declarations" | "id" | "style"> & LunaticExtraProps & object>

Subsequence

Subsequence: ComponentType<Pick<LunaticBaseProps<string>, "label" | "description" | "declarations" | "id"> & LunaticExtraProps & object>

Suggester()

Suggester: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersLunaticBaseProps<null | string> & LunaticExtraProps & object

Returns

Element

Summary()

Summary: (props) => Element

Summarize the responses done by the user

Parameters

ParameterType
propsLunaticBaseProps<null | string> & LunaticExtraProps & object

Returns

Element

Switch

Switch: ComponentType<LunaticBaseProps<boolean> & LunaticExtraProps & object>

Table()

Table: (props) => Element

Parameters

ParameterType
propsLunaticBaseProps<unknown> & LunaticExtraProps & object

Returns

Element

Text()

Text: (__namedParameters) => ReactNode

Parameters

ParameterType
__namedParametersLunaticBaseProps<string> & LunaticExtraProps & object

Returns

ReactNode

Textarea()

Textarea: (__namedParameters) => Element

Parameters

ParameterType
__namedParametersLunaticBaseProps<string> & LunaticExtraProps & object

Returns

Element

Defined in

src/components/library.ts:29