UNPKG

@kadoui/react

Version:

Kadoui primitive components for React

9 lines (8 loc) 323 B
"use client"; import { jsx as _jsx } from "react/jsx-runtime"; import { use } from "react"; import { ShowMoreContext } from "./ShowMoreContext"; export function ShowMoreFade(p) { const { shouldShowMore, isShowMore } = use(ShowMoreContext); return (shouldShowMore && !isShowMore ? (_jsx("div", { ...p })) : null); }