src/docs/list-style-type.mdx
import { ApiTable } from "@/components/api-table.tsx"; import { Example } from "@/components/example.tsx"; import { Figure } from "@/components/figure.tsx"; import { ResponsiveDesign, UsingACustomValue } from "@/components/content.tsx";
export const title = "list-style-type"; export const description = "Utilities for controlling the marker style of a list.";
<ApiTable rows={[ ["list-disc", "list-style-type: disc;"], ["list-decimal", "list-style-type: decimal;"], ["list-none", "list-style-type: none;"], ["list-(<custom-property>)", "list-style-type: var(<custom-property>);"], ["list-[<value>]", "list-style-type: <value>;"], ]} />
Use utilities like list-disc and list-decimal to control the style of the markers in a list:
<!-- [!code classes:list-disc] -->
<ul class="list-disc">
<li>Now this is a story all about how, my life got flipped-turned upside down</li>
<!-- ... -->
</ul>
<!-- [!code classes:list-decimal] -->
<ol class="list-decimal">
<li>Now this is a story all about how, my life got flipped-turned upside down</li>
<!-- ... -->
</ol>
<!-- [!code classes:list-none] -->
<ul class="list-none">
<li>Now this is a story all about how, my life got flipped-turned upside down</li>
<!-- ... -->
</ul>