@engie-group/fluid-design-system-react
Version:
Fluid Design System React
39 lines (38 loc) • 936 B
TypeScript
import React from 'react';
import { TSizeVariants } from '../../global';
export declare const NJFab: React.ForwardRefExoticComponent<IFabProps & React.RefAttributes<HTMLButtonElement>>;
export interface IFabProps {
/**
* Floating action button size
*/
size?: Extract<TSizeVariants, 'sm' | 'md'>;
/**
* Whether FAB is disabled or not
*/
isDisabled?: boolean;
/**
* Whether FAB should rotate or not
*/
noRotate?: boolean;
/**
* FAB theme variant
*/
variant?: 'default' | 'light';
/**
* Material icon name https://material.io/resources/icons/?style=baseline
*/
icon: string;
/**
* button title
*/
title?: string;
/**
* Hidden text label
*/
label: string;
/**
* Optional additional className
*/
className?: string;
onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
}