## Feature Examples

### Structure
- description: A list item section consists of title and suffix areas.
- example:
```jsx
<ListItemSection
  title="title"
  suffix={
    <StorybookComponents.Placeholder height="24px">
      suffix
    </StorybookComponents.Placeholder>
  }
/>;
```

### Types
- description: Component divides lists by 4 types: - `title` - acts as a title for list items. - `subheader` - acts as separator between list items for differentiation - `whitespace` - adds some padding between list items. - `divider` - same as whitespace, but with a line.
- example:
```jsx
<StorybookComponents.Stack flexDirection="column">
  <ListItemSection title="Section title" />
  <ListItemSection type="subheader" title="Subheader title" />
  <ListItemSection type="divider" />
  <ListItemSection type="whitespace" />
</StorybookComponents.Stack>;
```

### Suffix
- description: Add text, icons or a button at the end using suffix.
- example:
```jsx
<StorybookComponents.Stack flexDirection="column">
  <ListItemSection suffix="Suffix Action" />
  <ListItemSection suffix={<InfoIcon content="Tooltip content!" />} />
</StorybookComponents.Stack>;
```

### Text overflow
- description: By default, text wraps into any number of lines. With `ellipsis` enabled, it will truncate to fit the width of the parent container.
- example:
```jsx
<StorybookComponents.Stack flexDirection="column">
  <ListItemSection
    ellipsis
    title="This is a very very very very long text that will be cropped by ellipsis at some point. This is a very very very very long text that will be cropped by ellipsis at some point."
  />
  <ListItemSection title="This is a very very very very long text that will *not* be cropped by ellipsis at some point" />
</StorybookComponents.Stack>;
```

## Common Use Case Examples

### Grouping
- description: Use it to group options into categories.
- example:
```jsx
<Box direction="vertical">
  <ListItemSection type="subheader" title="Most popular" />
  <ListItemSelect title="Wix Stores" />
  <ListItemSelect title="Wix Bookings" />
  <ListItemSelect title="Wix Blog" />
  <ListItemSection type="subheader" title="Other" />
  <ListItemSection title="Wix Events" />
  <ListItemSelect title="Wix Forum" />
  <ListItemSelect title="Wix Restaurants" />
</Box>;
```
