@engie-group/fluid-design-system-react
Version:
Fluid Design System React
23 lines (22 loc) • 803 B
TypeScript
import { ButtonProperties } from '@engie-group/fluid-types';
import React from 'react';
import { AsChild, HTMLAttributesWithoutComponentProps } from '../../utils/typeHelpers';
export declare const NJButton: React.ForwardRefExoticComponent<NJButtonProps & React.RefAttributes<HTMLButtonElement>>;
type NJButtonOwnProps = ButtonProperties & {
/**
* Whether the button is visually disabled or not.
*/
visuallyDisabled?: boolean;
};
type NJButtonDefaultProps = {
/**
* Button text
*/
label?: string;
/**
* Optional additional className for icon
*/
iconClassName?: string;
};
export type NJButtonProps = NJButtonOwnProps & AsChild<HTMLAttributesWithoutComponentProps<'button', NJButtonOwnProps & NJButtonDefaultProps> & NJButtonDefaultProps>;
export {};