welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
28 lines (27 loc) • 736 B
JavaScript
"use client";
import { jsx as c } from "react/jsx-runtime";
import { forwardRef as m } from "react";
import { useField as _ } from "./Field.js";
import { c as v } from "./index-PAaZGbyz.js";
const f = "_root_hnm7b_2", p = {
root: f,
"variant-danger": "_variant-danger_hnm7b_34",
"variant-warning": "_variant-warning_hnm7b_40",
"variant-success": "_variant-success_hnm7b_46"
}, l = v(p), b = m(
({ className: r, minRows: t = 5, variant: n, ...o }, s) => {
const { getInputProps: e, variant: i } = _(), a = i || n;
return /* @__PURE__ */ c(
"textarea",
{
className: l("root", a && `variant-${a}`, r),
ref: s,
rows: t,
...e(o)
}
);
}
);
export {
b as Textarea
};