
components
Validation Status
v.1.0.0 | SaturnImport
12345678910
import { ValidationStatus } from '@kubit-ui-web/react-components'; <ValidationStatus variant="DEFAULT" customIcons={{ DEFAULT: { icon: 'ICON_PLACEHOLDER', altText: 'DEFAULT' }, SUCCESS: { icon: 'ICON_PLACEHOLDER', altText: 'SUCCESS' }, ERROR: { icon: 'ICON_PLACEHOLDER', altText: 'ERROR' }, }} items={[ { state: 'ERROR', text: 'This is the first requirement error' },
Props
Let's delve into the versatility of the validationStatus component by examining all its avalaible props.
Note that the validationStatus component's default styling properties can be moderately adjusted through the ctv prop, in case the project do not need a full variant customization. This limited customization ensures a seamless balance between predefined aesthetic and your specific design requirements. Additionally, it's essential to highlight that Kubit always provided the option to full customized all the variants that your project needs.
| Property | Description | Variant | Default |
|---|---|---|---|
variant Required | Variant of ValidationStatus | String | - |
items Required | Set the validation list to show into the component | IValidationStatusList | - |
stateIcons Required | Set the custom icons to show in differents row states | ValidationStatusStateIconsType | - |
| maxItemsAllowed | Set the row max number allowed | Number | 6 |
| dataTestId | Data test id | String | - |
| ctv | Modify styles for the default version of the component | ValidationStatusStylesProps | - |