mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-19 17:22:12 +00:00
sticky folders
This commit is contained in:
1 parent
8fa88680b3
commit
593b43e433
5 files changed
+48
-4
No files matched your search
@@ -10,6 +10,9 @@
|
||||
id: string | number;
|
||||
class?: ClassValue;
|
||||
trigger: Snippet;
|
||||
/** Classes and style of the trigger row (when the trigger holds the content), to make it stick. */
|
||||
triggerClass?: ClassValue;
|
||||
triggerStyle?: string;
|
||||
/** Gets whether the node is open, for contents that are only worth building then. */
|
||||
content: Snippet<[boolean]>;
|
||||
} = $props();
|
||||
@@ -32,7 +35,7 @@
|
||||
|
||||
<Collapsible.Root bind:open={open.current} class={props.class}>
|
||||
{#if slotInsideTrigger}
|
||||
<Collapsible.Trigger class="w-full">
|
||||
<Collapsible.Trigger class={['w-full', props.triggerClass]} style={props.triggerStyle}>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
|
||||
Reference in new issue
Block a user