• Getting Started
  • Components
  • Github
  • Go pro
energyGetting started
  • Introduction
dComponents
  • Button Components
  • Grid Components
  • Input Components
  • Layout Components
  • Toast Components
  • Widget Components
  • Alert
  • Badge
  • Breadcrumb
  • Callout
  • Card
  • Carousel
  • Charts
  • Collapse
  • CreateElement
  • DataTable
  • Dropdown
  • ElementCover
  • Embed
  • Fade
  • Form
  • Icon
  • Img
  • Jumbotron
  • Link
  • ListGroup
  • Media
  • Modal
  • Nav
  • Navbar
  • Pagination
  • Popover
  • Progress
  • Spinner
  • Switch
  • Tabs
  • Toggler
  • Tooltip

ListGroup

React List Groups allows displaying are a series of content.


Usage

Example

    This is a default list group itemThis is a primary list group itemThis is a secondary list group itemThis is a success list group itemThis is a danger list group itemThis is a warning list group itemThis is a info list group itemThis is a light list group itemThis is a dark list group item

Script


  return (
    <CListGroup>
      <CListGroupItem href="#">
        This is a default list group item
      </CListGroupItem>
      <CListGroupItem href="#" color="primary">
        This is a primary list group item
      </CListGroupItem>
      <CListGroupItem href="#" color="secondary">
        This is a secondary list group item
      </CListGroupItem>
      <CListGroupItem href="#" color="success">
        This is a success list group item
      </CListGroupItem>
      <CListGroupItem href="#" color="danger">
        This is a danger list group item
      </CListGroupItem>
      <CListGroupItem href="#" color="warning">
        This is a warning list group item
      </CListGroupItem>
      <CListGroupItem href="#" color="info">
        This is a info list group item
      </CListGroupItem>
      <CListGroupItem href="#" color="light">
        This is a light list group item
      </CListGroupItem>
      <CListGroupItem href="#" color="dark">
        This is a dark list group item
      </CListGroupItem>
    </CListGroup>
  )
  


# Features

  • Automically detect if item is actionable
  • If 'to' or 'href' prop is passed to CListGroupItem it gains functionality of CLink component - it gains all props and options of CLink component

# ListGroup API

NameRequiredTypeDefault Value
taganyul
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
flushboolean
sets flush mode
horizontalstring
sets horizontal mode, pass breakpoint, if you want list group to be horizontal from specific width
accentboolean
add color accent



ListGroupItem


# ListGroupItem API

NameRequiredTypeDefault Value
taganyli
main HTML tag name
classNameany
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
activeboolean
active state
disabledboolean
disbale state
colorstring
background color
accentstring
accent type
actionboolean
set action mode (hover effect)

  • Components
    • Usage
      • Features
      • API
    • Related
      • CListGroup
      • CListGroupItem
CoreUI © 2020 creativeLabs.core-logo