UNPKG

@yookue/react-condition

Version:

Render components conditionally for react

13 lines (12 loc) 399 B
import React from 'react'; export type SwitchProps = React.PropsWithChildren<{ validation?: boolean; }>; export type SwitchCaseProps = React.PropsWithChildren<{ condition: boolean | number | string | null | undefined; render?: () => React.ReactNode; }>; export type SwitchDefaultProps = React.PropsWithChildren<{ render?: () => React.ReactNode; }>; export declare const Switch: any;