Skip to content

Commit 2553ed3

Browse files
author
Marcus Stöhr
committed
feat(toolkit): allow custom classes to be passed from the outside
1 parent 4523fce commit 2553ed3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{# @block content The default block #}
22
<kbd
3-
class="{{ ('bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none [[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10' ~ attributes.render('class'))|tailwind_merge }}"
4-
{{ attributes }}
3+
class="{{ ('bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none [[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10 ' ~ attributes.render('class'))|tailwind_merge }}"
4+
{{ attributes.without('class') }}
55
>
66
{%- block content %}{% endblock -%}
77
</kbd>

0 commit comments

Comments
 (0)