src/docs/text-decoration-style.mdx
import { ApiTable } from "@/components/api-table.tsx"; import { Example } from "@/components/example.tsx"; import { Figure } from "@/components/figure.tsx"; import { ResponsiveDesign } from "@/components/content.tsx";
export const title = "text-decoration-style"; export const description = "Utilities for controlling the style of text decorations.";
<ApiTable rows={[ ["decoration-solid", "text-decoration-style: solid;"], ["decoration-double", "text-decoration-style: double;"], ["decoration-dotted", "text-decoration-style: dotted;"], ["decoration-dashed", "text-decoration-style: dashed;"], ["decoration-wavy", "text-decoration-style: wavy;"], ]} />
Use utilities like decoration-dotted and decoration-dashed to change the text decoration style of an element:
<!-- [!code classes:decoration-solid,decoration-double,decoration-dotted,decoration-dashed,decoration-wavy] -->
<p class="underline decoration-solid">The quick brown fox...</p>
<p class="underline decoration-double">The quick brown fox...</p>
<p class="underline decoration-dotted">The quick brown fox...</p>
<p class="underline decoration-dashed">The quick brown fox...</p>
<p class="underline decoration-wavy">The quick brown fox...</p>
<ResponsiveDesign element="p" property="text-decoration-style" defaultClass="underline" featuredClass="decoration-dashed" />