0.1.1 • Published 3 months ago

e-dashboard v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

WELCOME TO LIBRARY ELC DASHBOARD

Hi this component using vue 3 + typescript.

Component
EButton
ECard
ECardGroup
ECalendar
EDropdown
EInput
ESpinner
ESeparator

Installation

 npm install e-dashboard

  import { EButton } from 'e-dashboard'

  <EButton label="evan" />

BUTTON

API

PropertyDescriptionTypeDefault
colorSet the button type, options include ( primary , secondary, dark )Stringprimary
sizeSet the button size, options include ( small, medium , large )Stringmedium
outlinedSet the button type outlinedBooleanfalse
loadingSet the condition of loadingBooleanfalse
colorSpinnerSet the color spinner when loadingStringprimary
disabledSet the button to disabledBooleanfalse

Usage / Examples

<EButton
  color="primary"
  size="large"
  outlined
  :loading="false"
  color-spinner="secondary"
>
        asdsa
    </EButton>

CALENDAR

API

PropertyDescriptionTypeDefault
selectDateSet the date default (YYYY-MM-DD)Stringnull
border-colorset the color ( primary, secondary, dark)Stringprimary

Usage / Examples

<template>
  <ECalendar :selectedDate="selectedDate" />
</template>

<script lang="ts" setup>
const selectDate = ref("2024-10-10");
</script>

CARD

API

PropertyDescriptionTypeDefault
colorSet the button type, options include ( primary , secondary, dark )Stringprimary
sizeSet the card size, options include ( small , medium, large )Stringmedium
borderedSet the card bordered modelBooleanfalse

Usage / Examples

Button with type

<ECard color="dark" size="large" bordered>
      example
</ECard>

CARD GROUP

API

PropertyDescriptionTypeDefault
dataSet the value for loopArray[]
modelSet the model cardGroup , options include ( vertical, horizontal )Stringhorizontal
borderedSet the card bordered modelBooleanfalse

Usage / Examples

Button with type

<ECardGroup :data="data" model="horizontal">
        <template v-slot:default="{ props }">
          {{ props.items }}
        </template>
  </ECardGroup>

DROPDOWN

API

PropertyDescriptionTypeDefault
colorSet the Dropdown type, options include ( primary , secondary, dark )Stringprimary
sizeSet the Dropdown size, options include ( small, medium, large )Stringmedium
placeholderSet the placeholder for dropdownString' '
optionsSet the optionArray[]
optionsLabelSet the option labelString, numbernull
optionsValueSet the options valueString, numbernull

Usage / Examples

<template>
  <EDropdown
    v-model="select"
    size="large"
    color="dark"
    placeholder="selected value"
    :options="data"
    optionsLabel="name"
    optionsValue="items"
  />
</template>

<script lang="ts" setup>
const data = ref([
  { items: 1, name: "evan" },
  { items: 2, name: "pan" },
  { items: 3, name: "wilz" },
  { items: 4, name: "adam" },
  { items: 5, name: "luthfi" },
  { items: 6, name: "kiwil" },
  { items: 7, name: "young" },
  { items: 8, name: "start" },
]);

const select = ref("evan");
</script>

INPUT

API

PropertyDescriptionTypeDefault
nameSet the name inputStringnull
labelSet the label forStringnull
sizeSet the input size, options include ( small , medium, large, auto )Stringmedium
placeholderSet the placeholder for inputStringnull
requiredSet the required for inputBooleanfalse
errorMessageSet the message for error messageStringnull

Usage / Examples

<template>
  <EInput
    name="example"
    v-model="inputValue"
    label="Example Input"
    placeholder="Enter something..."
    :required="true"
    size="medium"
    errorMessage="This field is required"
  />
</template>

<script lang="ts" setup>
const inputValue = ref("");
</script>

SEPARATOR

API

PropertyDescriptionTypeDefault
colorSet the button type, options include ( primary , secondary, dark )Stringprimary

Usage / Examples

Button with type

<ESeperator color="primary" />

SPINNER

API

PropertyDescriptionTypeDefault
colorSet the button type, options include ( primary , secondary, dark )Stringprimary

Usage / Examples

Button with type

<ESpinner color="dark" />
0.1.0

3 months ago

0.1.1

3 months ago

0.0.9

3 months ago

0.0.8

3 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago