# List Item

Designed to place within a List slot.&#x20;

<figure><img src="/files/qncshvdeRIOVKnX3e5rk" alt=""><figcaption></figcaption></figure>

## Properties

* **Text.** The text to display.&#x20;

#### Nested List

* **Show Slot.** Makes the hidden slot for nested lists visible and accessible.&#x20;
* **Slot.** Used for placing nested lists.&#x20;

## Variants&#x20;

Consider slotted variant for semantic constructions.&#x20;

## Styling

{% hint style="danger" %}
For consideration.&#x20;
{% endhint %}

Here’s what styling you can apply specifically to **list items** (`<li>`):

* **Text styling:**
  * `color`
  * `font-size`
  * `font-weight`
  * `font-family`
  * `text-transform` (uppercase, lowercase, capitalize)
  * `text-decoration` (underline, line-through, etc.)
  * `line-height`
  * `letter-spacing`
  * `text-align`
* **Spacing and layout:**
  * `margin` → space outside the list item
  * `padding` → space inside the list item
  * `height` / `min-height` / `max-height`
  * `width` / `min-width` / `max-width`
  * `display` → block, inline, flex, grid, etc.
  * `gap` → spacing between children if flex/grid
  * `float` / `clear`
* **Background and borders:**
  * `background-color`
  * `background-image`
  * `border`
  * `border-radius`
  * `box-shadow`
* **Positioning:**
  * `position` → relative, absolute, etc.
  * `top`, `right`, `bottom`, `left`
* **Custom markers (modern browsers):**
  * `::marker` pseudo-element:
    * `color`
    * `font-size`
    * `content` (custom symbol or text)
    * `font-family`

Example:

```css
cssCopyEditli {
  padding: 0.5em;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

li::marker {
  color: red;
  content: "→ ";
}
```

* **Interactivity:**
  * `cursor`
  * `hover` / `focus` styles
  * animations / transitions

Everything that applies to a block element can generally be applied to `<li>`. They’re flexible containers for any HTML content (text, images, divs, etc.).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sygnal.gitbook.io/sygnal-webflow-components/nc/basic/list-item.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
