📄️ Common Field Props
All field components share a common set of props. These are defined in FieldProps and accepted by every field in Strato Admin.
📄️ <TextField>
The most basic field, it displays a property of a record as a simple string. It uses the Cloudscape Link component if the link prop is provided.
📄️ <IdField>
Displays a record's ID field. By default it links to the record's detail page (if one exists) and is hidden in forms.
📄️ <NumberField>
Displays a numeric value, formatted according to the user's locale using Intl.NumberFormat.
📄️ <CurrencyField>
Displays a currency value, formatted according to the user's locale using Intl.NumberFormat.
📄️ <DateField>
Displays a date or time, formatted according to the user's locale using Intl.DateTimeFormat.
📄️ <BooleanField>
Displays a boolean value as a Cloudscape StatusIndicator (checkmark or cross).
📄️ <StatusIndicatorField>
Displays a field value as a Cloudscape StatusIndicator with an icon and optional label. Supports mapping field values to indicator types declaratively or via a lookup object.
📄️ <BadgeField>
Displays a field value inside a Cloudscape Badge component. Useful for surfacing short labels like statuses or categories at a glance.
📄️ <ReferenceField>
Fetches a related record and displays its representation. It manages the data fetching automatically and provides a link to the related record by default.
📄️ <ReferenceManyField>
Fetches and displays a list of records from another resource that reference the current record. Renders as a table using the referenced resource's schema by default.
📄️ <ArrayField>
Used to display an array of data stored in a single field. It provides a ListContext to its children, allowing them to use other field or table components to display the array's elements.