@engie-group/fluid-design-system-react
Version:
Fluid Design System React
30 lines (29 loc) • 848 B
TypeScript
import React from 'react';
import './NJSidepanelHeader.scss';
export declare const NJSidepanelHeader: React.ForwardRefExoticComponent<ISidepanelHeaderProps & React.RefAttributes<HTMLDivElement>>;
export interface ISidepanelHeaderProps {
/**
* Header title
*/
title?: string;
/**
* Custom title content. Will be rendered if no `title` provided.
*/
children?: React.ReactNode;
/**
* Whether it should display a close icon in the header
*/
hasCloseIcon?: boolean;
/**
* Close icon text alternative for assistive technologies
*/
closeIconLabel?: string;
/**
* Function called on close button click
*/
onCloseIconClicked?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
/**
* Sidepanel actions
*/
actions?: React.ReactNode[];
}