UNPKG

@coreui/react

Version:

UI Components Library for React.js

29 lines (28 loc) 1.05 kB
import { ElementType, AnchorHTMLAttributes } from 'react'; import { PolymorphicRefForwardingComponent } from '../../helpers'; import type { Colors } from '../../types'; export interface CListGroupItemProps extends AnchorHTMLAttributes<HTMLLIElement | HTMLAnchorElement | HTMLButtonElement> { /** * Toggle the active state for the component. */ active?: boolean; /** * Component used for the root node. Either a string to use a HTML element or a component. */ as?: ElementType; /** * A string of all className you want applied to the component. */ className?: string; /** * Sets the color context of the component to one of CoreUI’s themed colors. * * @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string */ color?: Colors; /** * Toggle the disabled state for the component. */ disabled?: boolean; } export declare const CListGroupItem: PolymorphicRefForwardingComponent<'li', CListGroupItemProps>;