gridsome-plugin-base-components
v0.0.12
Published
A Gridsome-friendly way to auto-import base components.
Downloads
1,324
Maintainers
Readme
gridsome-plugin-base-components
Auto-import base components. Like
this. Components
should be in src/components
and start with Base
.
If you have files in src/composables
that fit the pattern use-something.{js,ts}
, these will also be required.
Installation
npm i gridsome-plugin-base-components
Add this to gridsome.config.js
:
plugins: [
{
use: 'gridsome-plugin-base-components',
}
]
<BaseInput
v-model="searchText"
@keydown.enter="search"
/>
<BaseButton @click="search">
<BaseIcon name="search"/>
</BaseButton>