PHP Classes

File: resources/js/components/ui/button/Button.vue

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

Contents

Class file image Download
<script setup lang="ts"> import type { PrimitiveProps } from "reka-ui" import type { HTMLAttributes } from "vue" import type { ButtonVariants } from "." import { Primitive } from "reka-ui" import { cn } from "@/lib/utils" import { buttonVariants } from "." interface Props extends PrimitiveProps { variant?: ButtonVariants["variant"] size?: ButtonVariants["size"] class?: HTMLAttributes["class"] } const props = withDefaults(defineProps<Props>(), { as: "button", }) </script> <template> <Primitive :as="as" :as-child="asChild" :class="cn(buttonVariants({ variant, size }), props.class)" > <slot /> </Primitive> </template>