@engie-group/fluid-design-system-react
Version:
Fluid Design System React
48 lines (47 loc) • 1.19 kB
TypeScript
import React from 'react';
export declare const NJSidebarBrand: React.ForwardRefExoticComponent<ISidebarBrandProps & React.RefAttributes<HTMLAnchorElement>>;
interface ISidebarBrandProps {
/**
* Element id
*/
id?: string;
/**
* Element title
*/
title?: string;
/**
* Element href
*/
href?: string;
/**
* Element target
*/
target?: '_blank' | '_self';
/**
* Logo / brand object, customize to replace Engie default logo
* Accepts the src of the brand image when the sidebar is open
*/
imageSrc?: string;
/**
* Logo / brand object, customize to replace Engie default logo
* Accepts the src of the brand image when the sidebar is folded
*/
imageFoldedSrc?: string;
/**
* Alternative text of the brand image
*/
imageAlt?: string;
/**
* Alternative text of the brand image when the sidebar is folded
*/
imageFoldedAlt?: string;
/**
* onClick event
*/
onClick?: (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
/**
* Optional additional className
*/
className?: string;
}
export {};