--- 
title: List
description: Styled ordered and unordered lists
category: components
a1Full: true
group: Data Display

module: NxListModule
components:
  - name: NxListComponent
    selector: ul[nxList], ol[nxList]
    inputs:
      - name: type
        default: input<NxListType>('primary')
        type: "InputSignal<'primary' | 'secondary'>"
      - name: size
        desc: "Sets the size of the list. When set it takes precedence over a size given in the `nxList` modifier string."
        default: input<NxListA1Size | undefined>(undefined)
        type: "InputSignal<'s' | 'm' | undefined>"
      - name: inverseInput
        desc: "Whether the list should use inverse (light-on-dark) colors. Replaces the deprecated `negative` modifier. When not set, it follows the surface the list is placed on (see `nxSurface`)."
        default: input<boolean | undefined, unknown>(undefined, {
      transform: nxOptionalBooleanAttribute,
      alias: 'inverse',
    })
        type: "InputSignalWithTransform<boolean | undefined, unknown>"
      - name: nxList
        desc: "Sets the visual appearance of the list. You can combine different values:  xsmall | small | normal: The listed input values are expanded to the underlying BEM conform styles based on modifiers. Defaults to normal. Use the `size` input for the A1 sizes.  Negative: Display the list with a negative set of styling. Deprecated, use the `inverse` input instead.  Ordered-circle: Display the list item numbers in a color filled circle."
        type: "string"
      - name: condensed
        desc: "Change the list mode to condensed"
        type: "boolean"
  - name: NxListIconComponent
    selector: li[nxListIcon]
    inputs:
      - name: name
        desc: "Sets the name of the icon to be displayed."
        default: input.required<string>({ alias: 'nxListIcon' })
        type: "InputSignal<string>"

---
# Overview
The component library supports three types of lists: unordered lists, ordered lists and lists with icons.
