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

Commit 34bfd29

Browse files
committed
feat: create chakra optional properties
1 parent 2e91292 commit 34bfd29

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/vue/src/create-chakra.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function extendChakra(options = defaultPluginOptions) {
5353
return options
5454
}
5555

56-
export function createChakra(_options: ChakraPluginOptions) {
56+
export function createChakra(_options: ChakraPluginOptions = {}) {
5757
const ChakraUIVuePlugin: Plugin = {
5858
install(app) {
5959
const options = mergeWith(

playground/src/test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { createChakra } from "@chakra-ui/vue-next"
2+
import { createApp } from "vue"
3+
import App from "./App.vue"
4+
5+
const chakra = createChakra({})
6+
7+
createApp(App).use(chakra).mount("#app")

0 commit comments

Comments
 (0)