@whitemordred/react-native-bootstrap5
Version:
A complete React Native library that replicates Bootstrap 5.3 with 100% feature parity, full theming support, CSS variables, and dark/light mode
41 lines • 1.32 kB
TypeScript
import React, { ReactNode } from 'react';
import { ViewStyle, TextStyle } from 'react-native';
interface OffcanvasProps {
visible: boolean;
onClose: () => void;
placement?: 'start' | 'end' | 'top' | 'bottom';
backdrop?: boolean | 'static';
keyboard?: boolean;
scroll?: boolean;
children: ReactNode;
style?: ViewStyle;
headerStyle?: ViewStyle;
bodyStyle?: ViewStyle;
}
interface OffcanvasHeaderProps {
children: ReactNode;
style?: ViewStyle;
closeButton?: boolean;
onClose?: () => void;
}
interface OffcanvasBodyProps {
children: ReactNode;
style?: ViewStyle;
}
interface OffcanvasTitleProps {
children: ReactNode;
style?: TextStyle;
}
export declare const OffcanvasHeader: React.FC<OffcanvasHeaderProps>;
export declare const OffcanvasBody: React.FC<OffcanvasBodyProps>;
export declare const OffcanvasTitle: React.FC<OffcanvasTitleProps>;
export declare const Offcanvas: React.FC<OffcanvasProps>;
export declare const useOffcanvas: () => {
visible: boolean;
placement: "bottom" | "end" | "start" | "top";
show: (newPlacement?: "start" | "end" | "top" | "bottom") => void;
hide: () => void;
toggle: (newPlacement?: "start" | "end" | "top" | "bottom") => void;
};
export default Offcanvas;
//# sourceMappingURL=Offcanvas.d.ts.map