UNPKG

gadgets

Version:

Reusable React UI widgets - This is my widget library. There are many like it, but this one is mine...

41 lines (40 loc) 1.08 kB
/** * A special Item block that can be placed at the top of a List * Generates a single header element that will be contained within a * List. This resolved to the `<li>` tag with special CSS selectors * for a header. * * #### Examples: * * ```javascript * import {List, ListHeader} from 'gadgets'; * <List> * <ListHeader title"header string" /> * </List> * ``` * * #### Events * See `Item` component * * #### Styles * - `ui-list-header` - A class style on the item block of the * component. * * #### Properties * See `Item` component * * @module ListFooter */ /// <reference types="react" /> import { ItemProps, ItemState } from "../item/Item"; import { BaseComponent } from "../shared"; export interface ListHeaderProps extends ItemProps { href?: any; } export declare type ListHeaderState = ItemState; export declare class ListHeader extends BaseComponent<ListHeaderProps, ListHeaderState> { static readonly defaultProps: ListHeaderProps; constructor(props: ListHeaderProps); render(): JSX.Element; } export default ListHeader;