- Move components/ to src/ and compile to dist/ with tsc - Add root barrel export plus deep-import subpath exports and base.css export - Post-compile step: copy base.css, add .js import extensions, mark client modules - Add publish.sh and .npmrc for the Gitea npm registry - Fix type errors, guard TinyMCE env access, drop ace-builds type dependency - Rename clashing props type names, remove Next.js scaffolding and unused deps Co-Authored-By: Claude Opus 5.5 <[email protected]>
25 lines
562 B
TypeScript
25 lines
562 B
TypeScript
import type { DetailedHTMLProps, HTMLAttributes } from "react";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
/**
|
|
* # H5 Headers
|
|
* @className twui-h5
|
|
*/
|
|
export default function H5({
|
|
...props
|
|
}: DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) {
|
|
return (
|
|
<h5
|
|
{...props}
|
|
className={twMerge(
|
|
"mb-4",
|
|
"twui-headings twui-heading",
|
|
"twui-h5",
|
|
props.className,
|
|
)}
|
|
>
|
|
{props.children}
|
|
</h5>
|
|
);
|
|
}
|