UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

26 lines (25 loc) 840 B
import type { CustomProps } from '../../../components/types/utils'; import type { InterfaceButtonProps } from '../../primitives/Button/types'; export interface InterfaceFabProps extends InterfaceButtonProps { /** * Placement of the Fab. * @default bottom-right */ placement?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'; /** * Text to be displayed in Fab. */ label?: JSX.Element | string; /** * Icon to be displayed in Fab. */ icon?: JSX.Element; /** * Determines whether the Fab should be rendered in a Portal. * Refer to this solution before using this prop- * https://github.com/GeekyAnts/NativeBase/issues/3817 * @default true */ renderInPortal?: boolean; } export declare type IFabProps = InterfaceFabProps & CustomProps<'FAB'>;