Styling API
Use these properties to style FancyList
with Tailwind or classes.
Property | Description |
---|---|
class | Class for the <ul> element |
style | Inline style for the <ul> element |
liClass | Class for the <li> element |
emojiClass | Class for the emoji |
iconClass | Class for the SVG icon |
Functionality API
Use these properties to create a list with custom bullets.
Property | Type | Description |
---|---|---|
emoji | string | The emoji to use as the bullet |
icon | string | The SVG Icon to use as the bullet. See SVG for instructions on using this. |
items | string[] | Item[] | List items. See Item |
Slots
Name | Description |
---|---|
Default | List items written in a Markdown syntax. |
Types
Item
List of items. This is required if you did not provide list items in slot
content. It can be an array of strings or Item
objects.
- Type:
string[] | object[]
- Default:
[]
If objects are passed into items
, each object have have the following :
interface Item { value: string // Text value icon?: string // SVG Icon emoji?: string // Emoji}