UNPKG

@erosnicolau/animated-text

Version:

Advanced React animated text component with comprehensive animation effects

6 lines (5 loc) 432 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; const DemoSection = ({ id, title, description, children, className = '' }) => { return (_jsxs("section", { id: id, className: `mb-12 ${className}`, children: [_jsx("h2", { className: "text-xl font-bold mb-6", children: title }), description && _jsx("p", { className: "text-neutral-700 mb-6", children: description }), children] })); }; export default DemoSection;