ntohq / buefy-next

Lightweight UI components for Vue.js (Vue3) based on Bulma
https://v3.buefy.org
MIT License
122 stars 10 forks source link

Rewrite individual doc components in TypeScript #175

Open kikuomax opened 10 months ago

kikuomax commented 10 months ago
kikuomax commented 9 months ago

Since no type checking works for globally installed components, to enable it, we have to explicitly import components and specify them to components option if the options API is used. If the example single component file lacks the <script> section, the easiest way is to add <script setup lang="ts"> and import necessary components. For instance:

<script setup lang="ts">
import { BButton, BIcon } from '@ntohq/buefy-next'
</script>
wesdevpro commented 4 months ago

@kikuomax I have marked off all of the switch examples