vuestic-ui
Version:
Vue 3 UI Framework
1 lines • 868 B
Source Map (JSON)
{"version":3,"file":"useSidebar.mjs","sources":["../../../../../../src/components/va-sidebar/hooks/useSidebar.ts"],"sourcesContent":["import { inject, provide, ExtractPropTypes } from 'vue'\n\nconst VaSidebarKey = Symbol('VaSidebar')\n\nexport const useSidebarProps = {\n color: { type: String, default: 'background-element' },\n textColor: { type: String },\n}\n\nexport const useSidebar = (props: ExtractPropTypes<typeof useSidebarProps>) => {\n provide(VaSidebarKey, props)\n}\n\nexport const useSidebarItem = () => {\n return inject<ExtractPropTypes<typeof useSidebarProps>>(VaSidebarKey, {\n color: 'background-element',\n // activeColor: 'primary',\n })\n}\n"],"names":[],"mappings":";AAEA,MAAM,eAAe,OAAO,WAAW;AAO1B,MAAA,aAAa,CAAC,UAAoD;AAC7E,UAAQ,cAAc,KAAK;AAC7B;AAEO,MAAM,iBAAiB,MAAM;AAClC,SAAO,OAAiD,cAAc;AAAA,IACpE,OAAO;AAAA;AAAA,EAAA,CAER;AACH;"}