Socket
Book a DemoInstallSign in
Socket

@dpa-id-components/dpa-event-items-preview

Package Overview
Dependencies
Maintainers
11
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dpa-id-components/dpa-event-items-preview

DpaEventItemsPreview vue component with dpa Design Kit

0.2.7
latest
npmnpm
Version published
Maintainers
11
Created
Source

@dpa-id-components/dpa-event-items-preview

DpaEventItemsPreview Vue 2.x domain sepecific UI component for a 5 day preview of event items based on the dpa Design Kit

Installation

yarn add @dpa-id-components/dpa-event-items-preview

Usage

<!-- SomeComponent.vue using DpaEventItemsPreview -->
<template>
  <DpaEventItemsPreview :events="eventsGroupedByDay" top="128">
    <template v-slot:default="slotProps">
      <DpaEventItem :event="slotProps.event" />
    </template>
  </DpaEventItemsPreview>
</template>

<script>
  import DpaEventItemsPreview from "@dpa-id-components/dpa-event-items-preview";
  import "@dpa-id-components/dpa-event-items-preview/dist/DpaEventItemsPreview.css";

  export default {
    components: { DpaEventItemsPreview },
  };
</script>

Demo

View a demo of <dpa-event-items-preview> on Storybook

API

Props

NameTypeRequiredDefaultDescription
eventsArraytrue[]An array of event objects, formatted and grouped by day
topNumberfalse0top position for the sticky header in px

Slots

NameDescription
defaultslot for the rendering of the event item

FAQs

Package last updated on 20 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.