kliping.pro
  • Docs
  • Directory
  • Colors
  • Typeset
Docs
    • Overview
    • Getting Started
    • Examples
    • registry.json
    • registry-item.json
    • FAQ

registry.json

PreviousNext

Skema untuk menjalankan registry komponen Anda sendiri.

Skema registry.json dipakai untuk mendefinisikan registry komponen buatan Anda.

json
{
  "$schema": "https://shadcn-vue.com/schema/registry.json",
  "name": "shadcn",
  "homepage": "https://shadcn-vue.com",
  "items": [
    {
      "name": "hello-world",
      "type": "registry:block",
      "title": "Hello World",
      "description": "A simple hello world component.",
      "files": [
        {
          "path": "registry/new-york/HelloWorld/HelloWorld.vue",
          "type": "registry:component"
        }
      ]
    }
  ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

Definisi ​

JSON Schema untuk registry.json bisa Anda lihat di sini.

$schema ​

Properti $schema menentukan skema untuk berkas registry.json.

json
{
  "$schema": "https://shadcn-vue.com/schema/registry.json"
}
1
2
3

name ​

Properti name menentukan nama registry Anda. Nilainya dipakai untuk atribut data dan metadata lainnya.

json
{
  "name": "acme"
}
1
2
3

homepage ​

Halaman utama registry Anda. Nilainya dipakai untuk atribut data dan metadata lainnya.

json
{
  "homepage": "https://acme.com"
}
1
2
3

items ​

Daftar items di registry Anda. Tiap item harus mengikuti spesifikasi skema registry-item.

json
{
  "items": [
    {
      "name": "hello-world",
      "type": "registry:block",
      "title": "Hello World",
      "description": "A simple hello world component.",
      "files": [
        {
          "path": "registry/new-york/HelloWorld/HelloWorld.vue",
          "type": "registry:component"
        }
      ]
    }
  ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

Keterangan lengkapnya ada di dokumentasi skema registry-item.

PreviousExamplesNext registry-item.json

On This Page

Definisi$schemanamehomepageitems
Dirilis di bawah lisensi MIT. Ditulis ulang untuk Vue dari shadcn-vue, shadcn-ui-blocks, dan shadcn-hooks. Hak cipta © 2026 Kliping