Langsung ke konten
Skillpedia
Website & UI (frontend)9.5k Β· #12275

buefy

Fungsinya

Skill ini memandu agent saat menulis layar Vue dengan pustaka komponen Buefy, yang didasarkan pada gaya Bulma. Skill ini ditujukan untuk pengembang yang membangun aplikasi web Vue.

Kapan dipakai

  • βœ“Saat Anda menulis halaman Vue dengan tombol, formulir, tabel, atau jendela pop-up.
  • βœ“Saat proyek Anda sudah mencantumkan Buefy sebagai dependensi.
  • βœ“Saat Anda membutuhkan kode antarmuka untuk proyek Vue dan belum ada pustaka UI yang dipilih.

Link skill

https://github.com/buefy/buefy/blob/main/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/buefy/buefy/blob/main/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat formulir kontak Vue dengan kolom Buefy, tombol kirim, dan pesan error.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memasang Buefy atau memakainya jika sudah ada di proyek, lalu menulis komponen Vue yang memakai bagian siap pakai, properti, dan event dari pustaka tersebut.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Buefy

Buefy is a lightweight UI component library for Vue 3 based on Bulma CSS. Components are Vue SFCs (<b-button>, <b-modal>, etc.) that wrap Bulma's class-based styles with reactive props, events, and slots.

When to run this skill

Trigger whenever you are:

  • Writing a Vue template or SFC that includes any UI element (buttons, forms, modals, tables, navigation, etc.)
  • Asked to "use Buefy" or "add a Buefy component"
  • Working in a project that has buefy in its package.json dependencies
  • Generating component code without a specified UI library in a Vue project

Install

npm install buefy

Full bundle (registers all components globally)

// main.ts
import { createApp } from 'vue'
import Buefy from 'buefy'
import 'buefy/dist/buefy.css'
import App from './App.vue'

const app = createApp(App)
app.use(Buefy)
app.mount('#app')

Individual components (tree-shakeable)

// main.ts β€” register as plugins
import { createApp } from 'vue'
import { Button, Field, Input } from 'buefy'
import App from './App.vue'

const app = createApp(App)
app.use(Button)
app.use(Field)
app.use(Input)
app.mount('#app')
<!-- Or import directly in a SFC -->
<script lang="ts">
import { BButton, BField, BInput } from 'buefy'
export default { components: { BButton, BField, BInput } }
</script>

Usage rules

  1. Use the type prop, not class β€” Buefy components expose Bulma modifiers as a type prop. Use type="is-primary" not class="is-primary" on Buefy components.
  2. Size prop values β€” "is-small" | "is-medium" | "is-large". No bare size strings.
  3. Always wrap form inputs in <b-field> β€” <b-field> provides the label, validation message, and grouping. Direct bare inputs miss label/message wiring.
  4. v-model target β€” Most components bind to modelValue. Named v-models on b-table: v-model:selected, v-model:checked-rows, v-model:current-page, v-model:opened-detailed.
  5. Icons β€” Use the icon prop with the icon name only (no mdi- prefix). The icon pack (MDI by default) must be registered in your project. Example: icon="home" not icon="mdi-home".
  6. b-table columns β€” <b-table> requires :data="arrayOfObjects" and <b-table-column field="key" label="Header"> children. Columns can also be passed via the :columns prop.
  7. Theming β€” Customize via Bulma SCSS variable overrides in a .scss file, not a JS config object. The ConfigProgrammatic utility sets defaults (icon pack, locale, etc.).
  8. Programmatic APIs β€” Components like Toast, Snackbar, Dialog, Loading, Modal, and Notification can be opened imperatively. Import the programmatic class or use the composable:
    import { ToastProgrammatic as Toast } from 'buefy'
    Toast.open('Hello world')
    // or with options:
    Toast.open({ message: 'Saved!', type: 'is-success', duration: 3000 })
    
    // Composable-style (preferred in Composition API):
    import { useToast } from 'buefy'
    const { open: openToast } = useToast()
    openToast({ message: 'Saved!', type: 'is-success' })
    

Colors & Types

Use these values for the type prop on components that accept it:

Value Meaning
is-primary Primary brand color (default blue)
is-link Link color
is-info Informational (cyan)
is-success Success (green)
is-warning Warning (yellow)
is-danger Error / danger (red)
is-dark Dark (near-black)
is-light Light (near-white)
is-white White
is-black Black

Size values: is-small Β· is-medium Β· is-large


Components

b-autocomplete

Autocomplete text input with dropdown suggestions.

Key props: v-model (String), data (Array β€” suggestion list), field (String β€” dot path into data objects for display), expanded, loading, icon, size, rounded, keep-first, open-on-focus, keep-open, clearable, placeholder

Slots: default (scoped: { option, index }) for custom option rendering; header, footer, empty, group

Emits: typing, select, focus, blur, infinite-scroll

<b-field label="Search">
  <b-autocomplete
    v-model="search"
    :data="filteredResults"
    field="name"
    placeholder="Type to search"
    @typing="onTyping"
    @select="onSelect"
  >
    <template #default="{ option }">
      {{ option.name }} β€” {{ option.category }}
    </template>
  </b-autocomplete>
</b-field>
Pertanyaan umum

Apakah saya perlu memasang Buefy terlebih dahulu?

Ya, kecuali proyek Anda sudah memilikinya. Skill menunjukkan langkah pemasangan dan cara mendaftarkan komponen.

Apakah ini bekerja dengan Vue 3?

Ya. Skill menggambarkan Buefy sebagai pustaka komponen untuk Vue 3.

Bisakah hanya memakai sebagian komponen?

Bisa. Skill menunjukkan cara mengimpor komponen tertentu, bukan seluruh paket.

Detail

Deskripsi asli dari pembuat

Official Buefy skill for Vue.js + Bulma UI components. TRIGGER when generating any Vue template, SFC, or component code that involves UI elements, forms, modals, tables, navigation, or feedback messages.

repo: buefy/buefy

Popularitas

Bintang GitHub
9.5k
Peringkat
#12275
Lisensi
MIT
Diperbarui
8/9/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill serupa