1.0.0-beta.1 • Published 12 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months 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.33

1 year ago

1.0.0-beta.34

12 months ago

1.0.0-beta.31

1 year ago

1.0.0-beta.32

1 year ago

1.0.0-beta.30

1 year ago

1.0.0-beta.29

1 year ago

1.0.0-beta.28

1 year ago

1.0.0-beta.26

1 year ago

1.0.0-beta.27

1 year ago

1.0.0-beta.25

1 year ago

1.0.0-beta.24

1 year ago

1.0.0-beta.23

1 year ago

1.0.0-beta.22

1 year ago

1.0.0-beta.20

1 year ago

1.0.0-beta.21

1 year ago

1.0.0-beta.19

1 year ago

1.0.0-beta.18

1 year ago

1.0.0-beta.17

1 year ago

1.0.0-beta.16

1 year ago

1.0.0-beta.15

1 year ago

1.0.0-beta.12

1 year ago

1.0.0-beta.13

1 year ago

1.0.0-beta.14

1 year ago

1.0.0-beta.11

1 year ago

1.0.0-beta.10

1 year ago

1.0.0-beta.9

1 year ago

1.0.0-beta.5

1 year ago

1.0.0-beta.6

1 year ago

1.0.0-beta.7

1 year ago

1.0.0-beta.8

1 year ago

1.0.0-next.2

1 year ago

1.0.0-next.3

1 year ago

1.0.0-beta.2

1 year ago

1.0.0-beta.3

1 year ago

1.0.0-beta.4

1 year ago

1.0.0-next.1

1 year ago

1.0.0-beta.1

1 year ago