@engie-group/fluid-design-system-react
Version:
Fluid Design System React
32 lines (31 loc) • 758 B
TypeScript
import React from 'react';
export declare const deprecatedDropdown: React.FC<IDropdownProps>;
/**
* @deprecated Dropdown component is deprecated, please use component SelectInput instead
*/
export declare const NJDropdown: React.FC<IDropdownProps>;
export interface IDropdownProps {
/**
* Dropdown list
*<br>
* name: name to search on<br>
* value: a custom value returned when user selects an item
*/
data?: Array<{
name: string;
value: string;
}>;
/**
* Get selected name and value
* @param name
* @param value
*/
onSelect?: ({ name, value }: {
name: string;
value: string;
}) => void;
/**
* list style height
*/
listHeight?: string;
}