UNPKG

2.69 kBTypeScriptView Raw
1/// <reference types="react" />
2declare const ToggleButton: (import("react").ComponentType<Pick<{
3 icon: import("../Icon").IconSource;
4 size?: number | undefined;
5 color?: string | undefined;
6 disabled?: boolean | undefined;
7 accessibilityLabel?: string | undefined;
8 onPress?: ((value?: string | import("react-native").GestureResponderEvent | undefined) => void) | undefined;
9 value?: string | undefined;
10 status?: "checked" | "unchecked" | undefined;
11 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
12 theme: ReactNativePaper.Theme;
13}, "style" | "color" | "size" | "onPress" | "accessibilityLabel" | "icon" | "value" | "disabled" | "status"> & {
14 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
15}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<{
16 icon: import("../Icon").IconSource;
17 size?: number | undefined;
18 color?: string | undefined;
19 disabled?: boolean | undefined;
20 accessibilityLabel?: string | undefined;
21 onPress?: ((value?: string | import("react-native").GestureResponderEvent | undefined) => void) | undefined;
22 value?: string | undefined;
23 status?: "checked" | "unchecked" | undefined;
24 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
25 theme: ReactNativePaper.Theme;
26}> & (({ icon, size, theme, accessibilityLabel, disabled, style, value, status, onPress, ...rest }: {
27 icon: import("../Icon").IconSource;
28 size?: number | undefined;
29 color?: string | undefined;
30 disabled?: boolean | undefined;
31 accessibilityLabel?: string | undefined;
32 onPress?: ((value?: string | import("react-native").GestureResponderEvent | undefined) => void) | undefined;
33 value?: string | undefined;
34 status?: "checked" | "unchecked" | undefined;
35 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
36 theme: ReactNativePaper.Theme;
37}) => JSX.Element), {}>) & {
38 Group: {
39 ({ value, onValueChange, children }: {
40 onValueChange: (value: string) => void | null;
41 value: string | null;
42 children: import("react").ReactNode;
43 }): JSX.Element;
44 displayName: string;
45 };
46 Row: {
47 ({ value, onValueChange, children, style }: {
48 onValueChange: (value: string) => void;
49 value: string;
50 children: import("react").ReactNode;
51 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
52 }): JSX.Element;
53 displayName: string;
54 };
55};
56export default ToggleButton;
57
\No newline at end of file