@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
7 lines (6 loc) • 452 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import clsx from 'clsx';
import { forwardRef, } from 'react';
import * as styles from './base-field.module.css';
export const BaseField = forwardRef(({ as: Wrapper = 'input', invalid, className, ...otherProps }, forwardedRef) => (_jsx(Wrapper, { ref: forwardedRef, "data-basefield-invalid": invalid, className: clsx(styles.BaseField, className), ...otherProps })));
BaseField.displayName = 'BaseField';