Files
NapCatQQ/.pnpm-store/v3/files/fe/6b3fb39ed35eafdbd407f0593d1ded218bfe5cf434059d0b1f85077ec24bbea2307ef1878bb2de9151d224b76cf498df31e985a81eed7a5adbdb19937a3f24
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

26 lines
567 B
Plaintext

// src/use-separator.ts
import { filterDOMProps } from "@heroui/react-rsc-utils";
function useSeparator(props) {
let domProps = filterDOMProps(props, {
enabled: typeof props.elementType === "string"
});
let ariaOrientation;
if (props.orientation === "vertical") {
ariaOrientation = "vertical";
}
if (props.elementType !== "hr") {
return {
separatorProps: {
...domProps,
role: "separator",
"aria-orientation": ariaOrientation
}
};
}
return { separatorProps: domProps };
}
export {
useSeparator
};