0.0.4 • Published 2 years ago

@arkn/breeze-ui v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Breeze UI npm (scoped)

A collection of components to handle ui with Breeze.

Installation

pnpm add @arkn/breeze-ui

About

This package provides a set of UI components that helps you develop your template faster.

Usage

Add this package globally to your template main.js:

import BreezeUI from '@arkn/breeze-ui'
import { createApp } from 'vue'

import App from './App.vue'

import '@arkn/breeze-ui/dist/style.css'

const app = createApp(App)

app.use(BreezeUI)

app.mount('#app')

Or import the components locally like this:

<script setup>
    import { BImg } from '@arkn/breeze-ui'
    import '@arkn/breeze-ui/dist/style.css'

    const url = ref('https://breezecms.github.io/breeze-docs/images/breeze-logo.svg')
</script>

<template>
    <b-img
    :src="url"
    :width="300"
    :height="300"
    object-fit="cover">
    </b-img>
</template>

List of available components:

Image

Usage

<b-img
  src="https://breezecms.github.io/breeze-docs/images/breeze-logo.svg"></b-img>

Props

NameTypeDescriptionDefaultRequired
srcstringImage sourceundefinedYes
altstringImage alt informationundefinedNo
fallbackSrcstringImage fallback sourceundefinedNo
heightstring / numberImage heightundefinedNo
widthstring / numberImage widthundefinedNo
stylesobjectImage styles{}No
objectFit'fill' / 'contain' / 'cover' / 'none' / 'scale-down'Object fit property'fill'No
displayAnimation'fade' / 'slide-fade' / 'bounce'Animation when image is loadedundefinedNo

Transition

Usage

<b-transition>
  <div>Hello World !</div>
</b-transition>

Props

NameTypeDescriptionDefaultRequired
name'fade' / 'slide-fade' / 'bounce'Animation name'fade'No
mode'default' / 'in-out' / 'out-in' / undefinedAnimation mode'out-in'No
appearbooleanDisplay when element appearfalseNo

Read More

Usage

<b-read-more
  text="Duis ex culpa eiusmod eiusmod esse. Aliqua aliquip quis tempor sint. Sit irure Lorem dolore officia proident dolore ad qui id ea voluptate.!"></b-read-more>

Props

NameTypeDescriptionDefaultRequired
textstringText content''Yes
moreStrstringMore indication text'Read more'No
lessStrstringLess indication text''No
linkstringUrl linked to more and less indication texts'#'No
maxCharsnumberMaximum characters length100No

Sticky Top

Usage

<b-sticky-top>
  <header>
    <div>Hello World !</div>
  </header>
</b-sticky-top>

Props

NameTypeDescriptionDefaultRequired
topnumberPosition of content from top0No
zIndexnumberContent z-index property1No
classNamestringAssociate class to component''No

Slots

NameParametersDescription
default()The default content of Sticky Top

Sticky Bottom

Usage

<b-sticky-bottom>
  <footer>
    <div>Copyright XXXX</div>
  </footer>
</b-sticky-bottom>

Props

NameTypeDescriptionDefaultRequired
bottomnumberPosition of content from bottom0No
zIndexnumberContent z-index property1No
classNamestringAssociate class to component''No

Slots

NameParametersDescription
default()The default content of Sticky Bottom

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Changelog

Detailed changes for each release are documented in the release notes.

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago