UNPKG

@cbinsights/fds

Version:
17 lines (16 loc) 658 B
import Icon from 'components/Icon'; declare type VALID_FAB_THEMES = 'aqua' | 'outlined'; export interface FloatingActionProps { /** Used to render a FDS Icon (should obnly be used for FDS Icons) */ Icon: Icon; /** Accessibility label */ label: string; /** Show loading spinner if true */ isLoading?: boolean; /** Controls active style UI of button */ isActive?: boolean; /** Theme of IconButton in the FloatingAction VALID_FAB_THEMES */ theme?: VALID_FAB_THEMES; } declare const FloatingAction: ({ theme, Icon, label, isActive, isLoading, ...rest }: FloatingActionProps) => JSX.Element; export default FloatingAction;