PHP Classes

File: resources/js/components/ui/separator/Separator.vue

Recommend this page to a friend!
  Packages of Niko Peikrishvili   Ticker   resources/js/components/ui/separator/Separator.vue   Download  
File: resources/js/components/ui/separator/Separator.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: 678 bytes
 

Contents

Class file image Download
<script setup lang="ts"> import type { SeparatorProps } from "reka-ui" import type { HTMLAttributes } from "vue" import { reactiveOmit } from "@vueuse/core" import { Separator } from "reka-ui" import { cn } from "@/lib/utils" const props = withDefaults(defineProps< SeparatorProps & { class?: HTMLAttributes["class"] } >(), { orientation: "horizontal", decorative: true, }) const delegatedProps = reactiveOmit(props, "class") </script> <template> <Separator v-bind="delegatedProps" :class=" cn( 'shrink-0 bg-border', props.orientation === 'horizontal' ? 'h-px w-full' : 'w-px h-full', props.class, ) " /> </template>