List

List Props

Name
Type
Default
Description

colors

object

Object with Tailwind CSS colors classes

colors.outlineIos

string

'border-black border-opacity-20 dark:border-white dark:border-opacity-15'

colors.outlineMaterial

string

'border-md-light-outline border-md-dark-outline'

colors.strongBgIos

string

'bg-ios-light-surface-1 dark:bg-ios-dark-surface-1'

colors.strongBgMaterial

string

'bg-md-light-surface-1 dark:bg-md-dark-surface-1'

component

string

'div'

Component's HTML Element

dividers

boolean

undefined

Renders dividers (borders) between list items, overwrites dividersIos and dividersMaterial

dividersIos

boolean

true

Renders dividers (borders) between list items in iOS theme

dividersMaterial

boolean

false

Renders dividers (borders) between list items in Material theme

inset

boolean

undefined

Makes list block inset. Overwrites insetIos and insetMaterial

insetIos

boolean

false

Makes list block inset in iOS theme

insetMaterial

boolean

false

Makes list block inset in Material theme

margin

string

'my-8'

Tailwind CSS margin class

menuList

boolean

Renders list as Menu List (same as <MenuList>)

nested

boolean

false

Removes hairlines/dividers and margins, useful for case nesting list block within other blocks

outline

boolean

undefined

Renders list outer borders. Overwrites outlineIos and outlineMaterial

outlineIos

boolean

false

Renders list outer borders in iOS theme

outlineMaterial

boolean

false

Renders list outer borders in Material theme

strong

boolean

undefined

Adds extra highlighting. Overwrites strongIos and strongMaterial

strongIos

boolean

false

Adds extra highlighting in iOS theme

strongMaterial

boolean

false

Adds extra highlighting in Material theme

Examples

Last updated