@synergy-design-system/react
Version:
React wrappers for the Synergy Design System
31 lines (30 loc) • 1.59 kB
TypeScript
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
* @status stable
* @since 2.12.0
*
* @dependency syn-alert
* @dependency syn-tooltip
*
* @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.
*
* @csspart tooltip - The syn-tooltip that is shown when the variant is set to "tooltip".
* @csspart tooltip__base - The container that wraps the tooltip.
* @csspart tooltip__popup - The container that wraps the tooltip popup.
* @csspart tooltip__arrow - The container that wraps the tooltip arrow.
* @csspart tooltip__body - The container that wraps the tooltip body.
*/
export declare const SynValidate: import("@lit/react").ReactWebComponent<Component, {}>;