gridsome-plugin-base-components

0.0.12 • Public • Published

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>

Package Sidebar

Install

npm i gridsome-plugin-base-components

Weekly Downloads

307

Version

0.0.12

License

MIT

Unpacked Size

2.56 kB

Total Files

3

Last publish

Collaborators

  • brandonpittman