Skip to content

Commit 3547ddd

Browse files
committed
feat: added bootstrap icon and grid in registry
1 parent a5eab2e commit 3547ddd

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

apps/site/pages/reference/icon.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ In a [programmatic page](page-module.md), you can import:
2727
```javascript
2828
import Envelope from "../img/bi-envelope-fill.svg"
2929
```
30-
* from a React icon library
30+
* from a icon library
3131
```javascript
32+
// that delivers raw svg file
33+
import OpenAiIcon from "bootstrap-icons/icons/openai.svg"
34+
// or React component
3235
import {ChevronDownIcon} from "lucide-react";
3336
```
3437

registry.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,47 @@
2020
"registryDependencies": [
2121
"button"
2222
]
23+
},
24+
{
25+
"name": "Grid",
26+
"type": "registry:ui",
27+
"title": "Grid Cells System",
28+
"description": "Flex Grid based on the bootstrap system",
29+
"files": [
30+
{
31+
"path": "src/resources/components/interact/Grid.tsx",
32+
"type": "registry:ui",
33+
"categories": [
34+
"grid"
35+
],
36+
"meta": {
37+
"interact": {
38+
"type": "markdown"
39+
}
40+
}
41+
},
42+
{
43+
"path": "src/resources/components/interact/GridCell.tsx",
44+
"type": "registry:ui",
45+
"categories": [
46+
"grid"
47+
],
48+
"meta": {
49+
"interact": {
50+
"type": "markdown"
51+
}
52+
}
53+
},
54+
{
55+
"path": "src/resources/components/interact/grid.css",
56+
"type": "registry:file",
57+
"target": "src/styles/grid.css",
58+
"docs": "You need to import manually the grid.css file in your global.css file",
59+
"categories": [
60+
"grid"
61+
]
62+
}
63+
]
2364
}
2465
]
2566
}

0 commit comments

Comments
 (0)