spoko-design-system 0.2.93 → 0.2.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ interface Props {
|
|
|
8
8
|
listAriaLabel: string; // "List view"
|
|
9
9
|
gridAriaLabel: string; // "Grid view"
|
|
10
10
|
showViewToggler: boolean;
|
|
11
|
+
class?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
const {
|
|
@@ -16,13 +17,14 @@ const {
|
|
|
16
17
|
gridText,
|
|
17
18
|
listAriaLabel,
|
|
18
19
|
gridAriaLabel,
|
|
19
|
-
showViewToggler
|
|
20
|
+
showViewToggler,
|
|
21
|
+
class: className
|
|
20
22
|
} = Astro.props;
|
|
21
23
|
---
|
|
22
24
|
|
|
23
25
|
{
|
|
24
26
|
showViewToggler &&
|
|
25
|
-
<div class="flex items-center gap-2 ml-auto">
|
|
27
|
+
<div class:list={[ "flex items-center gap-2 ml-auto", className ]}>
|
|
26
28
|
<span class="text-slate-default text-sm">{showText}</span>
|
|
27
29
|
<div class="flex border rounded">
|
|
28
30
|
<button
|