1.0.0-beta.1 • Published 7 days ago

@crystal-creations/crystal-components v1.0.0-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

@crystal-creations/crystal-components

GitHub release (latest SemVer) GitHub Build and publish npm package npm npm

A vuetify based component library from crystal creations.

Usage in nuxt 3

  1. Install with

    npm install @crystal-creations/crystal-components

  2. Add the following to your nuxt.config.ts.

    export default defineNuxtConfig({
      app: {
        // ...
        modules: [
          // ...
          "@crystal-creations/crystal-components/nuxt",
        ],
      },
    });
  3. Add the component to your Vue component.

    <template>
       <CLicenseCard
         :software-info="{
           name: '@crystal-creations/crystal-components',
           version: 'v1.0.0',
           repositoryLink:
             'https://github.com/Crystal-Creations-GbR/crystal-components',
           notice: 'MIT',
         }"
       ></CLicenseCard>
    </template>

Usage in vue 3

  1. Install with

    npm install @crystal-creations/crystal-components

  2. Add the following to your Vue main.ts.

    import { CLicenseCard } from "@crystal-creations/crystal-components";
    import "@crystal-creations/crystal-components/styles";
    
    // ...
    
    const app = createApp(App)
    
    app.component("CLicenseCard", CLicenseCard);
  3. Add the component to your Vue component.

    <template>
       <CLicenseCard
         :software-info="{
           name: '@crystal-creations/crystal-components',
           version: 'v1.0.0',
           repositoryLink:
             'https://github.com/Crystal-Creations-GbR/crystal-components',
           notice: 'MIT',
         }"
       ></CLicenseCard>
    </template>

Development

There are two ways develop new or improve existing components:

  • Creating a new Story in the stories/ directory for the new component and running storybook (recommended)
  • Developing inside a nuxt project
    1. Install the module in a nuxt project using the instructions above
    2. Run yarn link in the component repo
    3. Run yarn link @crystal-creations/crystal-components in the nuxt project
    4. You can now use components from the library with hot reloading etc.

To add a new component: 1. Create the component in src/components 2. Add it to src/index.ts and src/nuxt.mjs

1.0.0-beta.29

7 days ago

1.0.0-beta.28

10 days ago

1.0.0-beta.26

15 days ago

1.0.0-beta.27

14 days ago

1.0.0-beta.25

15 days ago

1.0.0-beta.24

17 days ago

1.0.0-beta.23

24 days ago

1.0.0-beta.22

1 month ago

1.0.0-beta.20

1 month ago

1.0.0-beta.21

1 month ago

1.0.0-beta.19

1 month ago

1.0.0-beta.18

1 month ago

1.0.0-beta.17

2 months ago

1.0.0-beta.16

2 months ago

1.0.0-beta.15

2 months ago

1.0.0-beta.12

2 months ago

1.0.0-beta.13

2 months ago

1.0.0-beta.14

2 months ago

1.0.0-beta.11

2 months ago

1.0.0-beta.10

2 months ago

1.0.0-beta.9

2 months ago

1.0.0-beta.5

2 months ago

1.0.0-beta.6

2 months ago

1.0.0-beta.7

2 months ago

1.0.0-beta.8

2 months ago

1.0.0-next.2

2 months ago

1.0.0-next.3

2 months ago

1.0.0-beta.2

2 months ago

1.0.0-beta.3

2 months ago

1.0.0-beta.4

2 months ago

1.0.0-next.1

3 months ago

1.0.0-beta.1

3 months ago