UNPKG

@synergy-design-system/react

Version:
20 lines (19 loc) 1.15 kB
import Component from '@synergy-design-system/components/components/validate/validate.component.js'; /** * @summary Validate provides form field validation messages in a unified way. * It does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation) * and showing the validation message in a consistent, user defined way. * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-validate--docs * @dependency syn-alert * * @slot - The form field that should be validated. * Avoid slotting in more than one element, as subsequent ones will be ignored. * * @csspart base - The component's base wrapper. * @csspart input-wrapper - The container that wraps the form field. * @csspart alert - The syn-alert that is shown when the variant is set to "inline". * @csspart alert__base - The container that wraps the alert. * @csspart alert__message - The container that wraps the alert message. * @csspart alert__icon - The container that wraps the alert icon. */ export declare const SynValidate: import("@lit/react").ReactWebComponent<Component, {}>;