UNPKG

@blocktion/json-to-table

Version:

A powerful, modular React component for converting JSON data to navigable tables with advanced features like automatic column detection, theming, and sub-table navigation. Part of the Blocktion SaaS project ecosystem.

7 lines (6 loc) 256 B
import { jsx as _jsx } from "react/jsx-runtime"; export const ValidationMessage = ({ error, className = "", }) => { if (!error) return null; return (_jsx("div", { className: `text-xs text-red-500 mt-1 ${className}`, children: error })); };