@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
6 lines (5 loc) • 330 B
TypeScript
import { Props } from './Visibility';
export type { Props };
export default function useVisibility(props?: Partial<Props>): {
check: ({ visible, visibleWhen, visibleWhenNot, pathDefined, pathUndefined, pathTruthy, pathFalsy, pathTrue, pathFalse, pathValue, whenValue, inferData, filterData, }?: Partial<Props>) => boolean;
};