Use the FieldErrors component to render errors
mainFieldErrors component is used to render error messages based on a provided configuration. It is typically used in conjunction with form fields to display validation errors to the user.repository·main·Indexed 41 days ago
https://github.com/commercetools/ui-kitA React component library based on the commercetools Design System, providing accessible and standardized components optimized for Merchant Center custom applications. It includes components such as Avatar, AccessibleButton, FlatButton, and AccessibleHidden, along with developer tools like a PostCSS plugin for migrating deprecated custom properties.
FieldErrors component is used to render error messages based on a provided configuration. It is typically used in conjunction with form fields to display validation errors to the user.FieldWarnings component is used to display warning messages associated with a specific form field. It is intended to provide feedback to the user regarding field-level issues that are not necessarily blocking errors.DateRangeInput component provides a UI for users to select a start and end date as a single range. It is part of the commercetools UI Kit components.TextField component provides a single-line text input field. It is built to handle validation states (errors and warnings) and is intended to be used as a controlled component within React applications.TimeInput component provides a user interface for selecting a time. It automatically handles time formatting based on the user's current locale.TimeField is a controlled component designed for single time input. It allows users to select or enter a specific time value.The Typography system in the commercetools UI Kit is built upon a set of design tokens that define the visual foundation for text. These tokens are organized into four main categories:
These tokens are part of the choiceGroupsByTheme.default configuration and are intended to ensure visual consistency across all UI components.
Async Select Input is an input component designed to allow users to select an option from a list that is loaded asynchronously. This is useful for scenarios where the list of options is too large to load upfront or needs to be fetched from a server based on user input.A PrimaryActionDropdown is a specialized dropdown component designed to handle multiple actions, where the first action can be triggered immediately without the user needing to open the dropdown menu.
Key behaviors:
<Option /> is rendered as the head of the dropdown and serves as the primary action.<Option /> components within the dropdown are disabled, the entire dropdown head will be disabled.SelectInput component is built on top of react-select v2. When providing the options array, each option can include an isDisabled property. If isDisabled is true, the option will be rendered with a disabled style and cannot be selected by the user.Choose the appropriate input type based on the number of options and the selection requirements:
| Switch type | Number of options | Selection |
| ------------- | ----------------- | --------- |
| `Checkbox` | Multiple | Multiple |
| `Radio` | Multiple | Single |
| `ToggleInput` | Two | Single |To represent complex or nested prop types (like arrays or objects) in the generated Markdown table, use the following syntax notation in your documentation:
| Notation | Meaning |
|---|---|
. | object |
[] | array |
<> | union |
[]. | array of objects |
[]<> | array of unions |
[]<>. | array of union objects |
It is highly recommended to use JS Doc comments on each prop type to provide detailed information that will be rendered in the table.