UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

31 lines (30 loc) 743 B
import { ReactNodeOrFunction } from "../../utils/index.types.js"; import { ReactNode } from "react"; //#region src/components/show/show.d.ts interface ShowProps<Y> { /** * The children to render if `when` is `true` */ children: ReactNodeOrFunction<Y>; /** * The fallback content to render if `when` is `false` */ fallback?: ReactNode; /** * If `true`, it'll render the `children` prop */ when?: null | Y; } /** * `Show` is a component that shows or hides its children based on a condition. * * @see https://yamada-ui.com/docs/components/show */ declare const Show: <Y>({ children, fallback, when }: ShowProps<Y>) => ReactNode; //#endregion export { Show, ShowProps }; //# sourceMappingURL=show.d.ts.map