feat: migrate Pagination Header and InputOTP with field and event regressions

This commit is contained in:
maoyingjie
2026-10-23 13:49:44 +08:00
parent b2525bb04d
commit 1fa2929a24
72 changed files with 5784 additions and 16 deletions
@@ -0,0 +1,38 @@
<script lang="ts">
import { defineComponent, h, useAttrs } from "vue";
import { headerVariants } from "@heroui-vue/styles";
/**
* Collection / group section heading (RAC Header).
* Not an application top bar with logo or navigation.
* Renders a native `<header>` by default — matching the fixed RAC contract.
*/
export default defineComponent({
name: "HeaderRoot",
inheritAttrs: false,
props: {
/** Render the root as a custom element instead of `header`. */
as: {
type: String,
default: "header",
},
},
setup(props, { slots }) {
const attrs = useAttrs();
function render() {
return h(
props.as,
{
...attrs,
class: [headerVariants(), attrs.class],
"data-slot": "header",
},
slots.default?.(),
);
}
return render;
},
});
</script>