sifferhans / basic-ui

A collection of basic but polished components for Vue 3.

Home Page:https://basic-ui.sigveh.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Composables

sifferhans opened this issue · comments

Use composables for core component logic.
This has the potential to greatly reduce the complexity of the component files, as we separate logic from UI.

<script setup lang="ts">
import { useButton } from '@sigveh/basic-ui'
const { bindings, ref } = useButton()
</script>

<template>
  <button :ref="ref" v-bind="bindings">Click me</button>
</template>