@clayui/drop-down
Version:
ClayDropDown component
44 lines (43 loc) • 1.22 kB
TypeScript
/**
* SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: BSD-3-Clause
*/
import React from 'react';
export interface IProps extends React.HTMLAttributes<HTMLSpanElement | HTMLButtonElement | HTMLAnchorElement> {
/**
* Flag that indicates if item is selected.
*/
active?: boolean;
/**
* Flag that indicates if item is disabled or not.
*/
disabled?: boolean;
/**
* @ignore
*/
'data-index'?: number;
/**
* Path for item to link to.
*/
href?: string;
innerRef?: React.Ref<any>;
/**
* Sets the role accessibility property of the item. Set the item's
* container (<li />) role use the role="" prop instead of roleItem="".
*/
roleItem?: string;
/**
* Path to icon spritemap from clay-css.
*/
spritemap?: string;
/**
* Flag that indicates if there is an icon symbol on the left side.
*/
symbolLeft?: string;
/**
* Flag that indicates if there is an icon symbol on the right side.
*/
symbolRight?: string;
}
declare const Item: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLLIElement>>;
export default Item;