@bdt-component-library/list-item

List Item component

Usage no npm install needed!

<script type="module">
  import bdtComponentLibraryListItem from 'https://cdn.skypack.dev/@bdt-component-library/list-item';
</script>

README

ListItem Component

About

This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.

Description

Handles display of list items according to style guide conventions.

API

prop type required default explanation
className string no n/a Adds an optional classname to the component
children React node yes n/a The inner content of the list item
hasBulletIcon boolean no false Changes list style accommodate icons for list bullet marks