Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "components/List/ListGroupItem/index"

Index

Type aliases

Variables

Type aliases

TypeProps

TypeProps: HTMLProps<HTMLElement> & object

Variables

Const ListGroupItem

ListGroupItem: ForwardRefExoticComponent<object & RefAttributes<Object>> = React.forwardRef((props: TypeProps, ref) => {const { className, active, factory: Tag = 'button', ...domProps } = props;const onSelectionClick = useSelectionEvent();const result = (<Tag{...domProps}onClick={(event: React.SyntheticEvent) => {if (domProps.onClick) {domProps.onClick(event as any);}onSelectionClick(event, { index: props.index });}}ref={ref}className={join(className,baseClassName,`${baseClassName}--${active ? 'active' : 'not-active'}`)}></Tag>);return result;})

Const baseClassName

baseClassName: "ab-ListGroupItem" = "ab-ListGroupItem"

Generated using TypeDoc