Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 1fb2c98

Browse files
committed
docs: update code in readme
1 parent b50f8f2 commit 1fb2c98

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

packages/c-icon/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@ const customIcons = {
4242
};
4343

4444
// Step 2: Add the custom icon to the Chakra plugin
45-
Vue.use(Chakra, {
46-
icons: {
47-
// ...
48-
extend: {
49-
...customIcons
45+
const app = createApp(App)
46+
.use(ChakraUIVuePlugin, {
47+
icons: {
48+
// ...
49+
extend: {
50+
...customIcons
51+
}
5052
}
51-
}
52-
})
53+
})
5354
```
5455

5556
You can now consume your custom icons in your template like this:

0 commit comments

Comments
 (0)