FormCardInput
Stentor API Reference / stentor-models/src / FormCardInput
Interface: FormCardInput
Defined in: packages/stentor-models/src/Form/FormField.ts:264
Card display field for showing text and/or images.
Provides a rich card-based display component with optional header, media content, and body text.
Extendsβ
Propertiesβ
nameβ
name:
string
Defined in: packages/stentor-models/src/Form/FormField.ts:79
Name of the form input, this is not human readable and is used to identify the field.
For example: "SERVICE" or "FULL_NAME"
Inherited fromβ
title?β
optionaltitle?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:83
Optional title used to display on the input
Inherited fromβ
typeβ
type:
"CARD"|"TEXT"|"DROPDOWN"|"CHECK"|"CHIPS"|"DATE"|"DATERANGE"
Defined in: packages/stentor-models/src/Form/FormField.ts:87
Type of the input
Inherited fromβ
shape?β
optionalshape?:"ROUND"|"SQUARE"
Defined in: packages/stentor-models/src/Form/FormField.ts:91
Optional, used to shape the input. Not applicable to all inputs.
Inherited fromβ
condition?β
optionalcondition?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:98
A condition that must be met for the field to be shown.
For example: "issue === 'service_repair'" - issue is a field name in this example
Inherited fromβ
mandatory?β
optionalmandatory?:boolean
Defined in: packages/stentor-models/src/Form/FormField.ts:102
Is the field required.
Inherited fromβ
mandatoryError?β
optionalmandatoryError?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:106
Error message to show when the field is required but not filled out.
Inherited fromβ
mandatoryGroup?β
optionalmandatoryGroup?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:110
Group fields together where one of the fields in the group is required.
Inherited fromβ
style?β
optionalstyle?:object
Defined in: packages/stentor-models/src/Form/FormField.ts:116
React.CSSProperties style object to apply to the field.
For example: {{ width: '300px', height: '150px' }}
Inherited fromβ
header?β
optionalheader?:object
Defined in: packages/stentor-models/src/Form/FormField.ts:268
Optional header section with title and subheader
titleβ
title:
string
Main title text for the card header
subheader?β
optionalsubheader?:string
Optional subtitle or secondary text
media?β
optionalmedia?:object
Defined in: packages/stentor-models/src/Form/FormField.ts:281
Optional media section for displaying images
height?β
optionalheight?:number
Height of the media in pixels
width?β
optionalwidth?:number
Width of the media in pixels
imageUrlβ
imageUrl:
string
URL of the image to display
alt?β
optionalalt?:string
Alternative text for accessibility
text?β
optionaltext?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:302
Body text content for the card
variant?β
optionalvariant?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:306
Visual variant style for the card
color?β
optionalcolor?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:310
Color scheme for the card
align?β
optionalalign?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:314
Text alignment: "left", "center", "right", or "justify"