1.3.4 • Published 12 months ago

@markusand/ui-components v1.3.4

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

Vue 3 UI components

Install

Components

Avatar

Avatars are circular components that usually wrap an image or icon. They can be used to represent a person or an object.

Display an image that represents a person or an object, or displays the name initials as fallback. If wrapped in an avatar-group element, avatars are overlapped.

<Avatar :src="user.avatar" :initials="user.name" />

Props

proptypedefaultdescription
srcstring, nullundefinedImage url
initialsstringundefinedName from where extract fallback initials

Events

None

Slots

None

CSS custom properties

--avatar-size: 2rem
--avatar-radius: 15%

Button

<Button primary @click="doSomething">Do it!</Button>

Props

proptypedefaultdescription
primarybooleanundefined
alertbooleanundefined
outlinebooleanundefined
flatbooleanundefined
blockbooleanundefined
loadingbooleanundefined
disabledbooleanundefined
submitbooleanundefined
resetbooleanundefined

Events

None

Slots

default

CSS custom properties

--button-padding: 0.5rem
--button-margin: 1px
--button-border-radius: 4px
--button-color: #f8f8f8
--button-font-color: #606068
--button-border: 1px solid #c8c8cf

Collapser

<Collapser>
  <template #title>Title</template>
  <section>Content</section>
</Collapser>

Props

proptypedefaultdescription
disabledbooleanundefined
openbooleanundefined

Events

toggle

Slots

title Title

default Content

CSS custom properties

--collapser-padding: 0.75rem
--collapser-border: 1px solid #0001

1.3.4

12 months ago

1.3.3

12 months ago

1.3.2

12 months ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago