@postenbring/hedwig-react
Version:
React components for [Hedwig Design System](https://github.com/bring/hedwig-design-system).
32 lines (30 loc) • 828 B
JavaScript
import {
__objRest,
__spreadProps,
__spreadValues
} from "./chunk-YOSPWY5K.mjs";
// src/form/validation-message/validation-message.tsx
import { clsx } from "@postenbring/hedwig-css/typed-classname";
import { forwardRef } from "react";
import { jsx } from "react/jsx-runtime";
var ValidationMessage = forwardRef(
(_a, ref) => {
var _b = _a, { children, id, className } = _b, rest = __objRest(_b, ["children", "id", "className"]);
return /* @__PURE__ */ jsx(
"div",
__spreadProps(__spreadValues({
"aria-live": "polite",
className: clsx("hds-validation-message", className),
id,
ref
}, rest), {
children
})
);
}
);
ValidationMessage.displayName = "ValidationMessage";
export {
ValidationMessage
};
//# sourceMappingURL=chunk-7REW23LO.mjs.map