Skip to content

Instantly share code, notes, and snippets.

@Smileek
Smileek / MyButton.props.ts
Created April 28, 2025 08:20
Props Propagating
import { ComponentTheme } from "@/types/ComponentTheme";
import { IconSvg } from "@/types/IconSvg";
export interface MyButtonProps {
theme?: ComponentTheme;
small?: boolean;
icon?: IconSvg;
rightIcon?: IconSvg;
counter?: number;
disabled?: boolean;
import { ComputedRef, Ref, ref, watch } from 'vue';
export const useDropdownAttributes = () => {
const dropdownWidth = ref('');
const dropdownTop = ref('');
const dropdownBottom = ref('');
const dropdownLeft = ref('');
const isDirectedUpwards = ref(false);
const togglerRect = ref<DOMRect>();
const dropdownRect = ref<DOMRect>();