Honeycomb

list-wrapper

Props

Prop nameTypeDefaultDescription
smallboolean | undefinedfalse

Enables small layout

Elem"ul" | "ol" | undefinedul

List element

extraClassesstring | undefined

Injection in className

childrenListWrapperItemComp | ListWrapperItemComp[]Required

A one or more `ListWrapperItem` components. See ListWrapperItem

The ListWrapper renders a list (ul or ol) with an outlining border around the items.

The list wrapper accepts one or more ListWrapperItem components:

import { ListWrapper, ListWrapperItem } from '@flixbus/honeycomb-react';

<ListWrapper>
  <ListWrapperItem>Eevee</ListWrapperItem>
  <ListWrapperItem>Flareon</ListWrapperItem>
  <ListWrapperItem href="example.com">Vaporeon</ListWrapperItem>
  <ListWrapperItem href="example.com">Jolteon</ListWrapperItem>
</ListWrapper>

It has a smaller layout that removes the outline and has smaller spacing sizes.

import { ListWrapper, ListWrapperItem } from '@flixbus/honeycomb-react';

<ListWrapper small>
  <ListWrapperItem>You can use this style when</ListWrapperItem>
  <ListWrapperItem>Available vertical space is a constraint</ListWrapperItem>
  <ListWrapperItem href="example.com">It works well with longer lines</ListWrapperItem>
  <ListWrapperItem href="example.com">And also accepts links</ListWrapperItem>
</ListWrapper>