PHP Classes

File: resources/js/components/ui/sidebar/SidebarGroupAction.vue

Recommend this page to a friend!
  Packages of Niko Peikrishvili   Ticker   resources/js/components/ui/sidebar/SidebarGroupAction.vue   Download  
File: resources/js/components/ui/sidebar/SidebarGroupAction.vue
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Ticker
Application to track and manage to do tasks
Author: By
Last change:
Date: 2 months ago
Size: 848 bytes
 

Contents

Class file image Download
<script setup lang="ts"> import type { PrimitiveProps } from "reka-ui" import type { HTMLAttributes } from "vue" import { Primitive } from "reka-ui" import { cn } from "@/lib/utils" const props = defineProps<PrimitiveProps & { class?: HTMLAttributes["class"] }>() </script> <template> <Primitive data-sidebar="group-action" :as="as" :as-child="asChild" :class="cn( 'absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0', 'after:absolute after:-inset-2 after:md:hidden', 'group-data-[collapsible=icon]:hidden', props.class, )" > <slot /> </Primitive> </template>