Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use class instead of className for html #10

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/content/html/components/breadcrumb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,33 @@ export const components = {
<PreviewBlock codeBlocks={
[{
code:`<nav aria-label="breadcrumb">
<ol className="flex items-center gap-2 text-sm">
<ol class="flex items-center gap-2 text-sm">
<li>
<a href="https://tailus.io" className="link text-body variant-ghost">Tailus UI</a>
<a href="https://tailus.io" class="link text-body variant-ghost">Tailus UI</a>
</li>
<li role="presentation">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4 text-caption">
<path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5" />
</svg>
</li>
<li>
<a href="/" className="link text-body variant-ghost">Tailus UI HTML</a>
<a href="/" class="link text-body variant-ghost">Tailus UI HTML</a>
</li>
<li role="presentation">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4 text-caption">
<path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5" />
</svg>
</li>
<li>
<a href="#" className="link text-body variant-ghost">Components</a>
<a href="#" class="link text-body variant-ghost">Components</a>
</li>
<li role="presentation">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4 text-caption">
<path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5" />
</svg>
</li>
<li>
<span className="font-medium text-title">Breadcrumb</span>
<span class="font-medium text-title">Breadcrumb</span>
</li>
</ol>
</nav>`,
Expand Down Expand Up @@ -88,33 +88,33 @@ export const components = {
<PreviewBlock codeBlocks={
[{
code:`<nav aria-label="breadcrumb">
<ol className="flex items-center gap-2 text-sm">
<ol class="flex items-center gap-2 text-sm">
<li>
<a href="https://tailus.io" className="link text-body variant-ghost">Tailus UI</a>
<a href="https://tailus.io" class="link text-body variant-ghost">Tailus UI</a>
</li>
<li role="presentation">
<svg aria-hidden xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4 text-caption">
<path stroke-linecap="round" stroke-linejoin="round" d="m9 20.247 6-16.5" />
</svg>
</li>
<li>
<a href="/" className="link text-body variant-ghost">Tailus UI HTML</a>
<a href="/" class="link text-body variant-ghost">Tailus UI HTML</a>
</li>
<li role="presentation">
<svg aria-hidden xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4 text-caption">
<path stroke-linecap="round" stroke-linejoin="round" d="m9 20.247 6-16.5" />
</svg>
</li>
<li>
<a href="#" className="link text-body variant-ghost">Components</a>
<a href="#" class="link text-body variant-ghost">Components</a>
</li>
<li role="presentation">
<svg aria-hidden xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4 text-caption">
<path stroke-linecap="round" stroke-linejoin="round" d="m9 20.247 6-16.5" />
</svg>
</li>
<li>
<a href="/" aria-current="page" className="font-medium text-title">Breadcrumb</a>
<a href="/" aria-current="page" class="font-medium text-title">Breadcrumb</a>
</li>
</ol>
</nav>`,
Expand Down Expand Up @@ -153,4 +153,4 @@ export const components = {
</nav>
</PreviewBlock>
</div>
</div>
</div>