alouette
Version:
A modern, customizable design system built on top of NativeWind v5 with configurable defaults
16 lines • 969 B
TypeScript
import { type ForwardedRef, type RefCallback } from "react";
import type { View as RNView } from "react-native";
import type { TonalGroundWarningParams } from "./useTonalGroundWarningRef";
export type { TonalGroundWarningParams } from "./useTonalGroundWarningRef";
/**
* Forwards `ref`, and warns outside production when a `tonal` pressable rests
* on the very ground it is painted with, so that only its shadow still sets it
* apart: an accented one on its own accented surface in light mode, a neutral
* one on a white `bg-highlight` panel.
*
* The returned callback depends on `ref` alone, as passing `ref` straight
* through would: a state change (disabled, loading) re-runs the check without
* detaching and re-attaching the caller's ref.
*/
export declare function useTonalGroundWarningRef(ref: ForwardedRef<RNView>, { variant, disabled, forced }: TonalGroundWarningParams): RefCallback<RNView>;
//# sourceMappingURL=useTonalGroundWarningRef.web.d.ts.map