UNPKG

@engie-group/fluid-design-system-react

Version:

Fluid Design System React

22 lines (21 loc) 678 B
import React, { ComponentPropsWithoutRef } from 'react'; export type NJAccordionActionProps = ComponentPropsWithoutRef<'button'> & { /** * Action text */ label?: string; /** * The action when click on the button */ action: 'expand' | 'collapse'; }; export declare const NJAccordionAction: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & { /** * Action text */ label?: string; /** * The action when click on the button */ action: 'expand' | 'collapse'; } & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;