0.2.0 • Published 1 year ago

mpcd-ui v0.2.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

Welcome to MPCD-UI!

MPCD-UI is a Tailwind CSS/React Component Library made for the Zoroastrian Middle Persian Digital Corpus and Dictionary (MPCD) project, developed at the Cologne Center for eHumanities. You will find all available components listed below. But first visit the naming convention section of this Readme to fully understand its structure.

This library is still in development and may not be as polished as if it were finished. You're using an experimental build.

Naming convention

MPCD-UI uses its own PascalCase-based naming convention. A component name is structured as follows:

Abbreviation of HTML-Element typeSpecific Type if given
Btn
IptSearch
IptText
The examples above can be dissolved to
Btn: A generic button
IptSearch: An input element with a search type
IptText: An input element with a text type

Abbreviations & Extensions

Abbreviations

Here you'll find a listing of all included elements and their abbreviation.

ElementAbbreviation
ButtonBtn
InputIpt
General layout elementsLy

Extension entries

Here you'll find a listing of all currently available extension entries.

DefinitionAbbreviation
GlassmorphismGlm

Components

A listing of all currently available components including their abbreviation, prop possibilities and a short description. Every component accepts the addClasses prop which exists so that the user can also add individual classes. However, it is recommended not to write properties already used by other attributes in addClasses in order to avoid misinterpretations.

AbbreviationDescriptionReact-Props
BtnA buttonfontFam, fontSize, label, bgColor, color, rounded, border, borderColor, padding, cursor, hover, dark, onClick, addClasses, id
BtnGlmA button, glassmorphism stylefontFam, fontSize, label, bgFrom, bgTo, color, rounded, border, borderColor, padding, cursor, hover, dark, onClick, addClasses, id
IptCheckboxA checkbox with labelfontFam, fontSize, label, name, value, bgColor, color, rounded, border, borderColor, padding, cursor, height, width, margin, hover, dark, focus, checked, onClick, addClasses, id, required, isChecked
IptRadioA radio button with labelfontFam, fontSize, label, name, value, bgColor, color, rounded, border, borderColor, padding, cursor, height, width, margin, hover, dark, focus, checked, onClick, addClasses, id, required, isChecked
IptSearchA search input fieldfontFam, fontSize, bgColor, color, rounded, border, borderColor, padding, cursor, hover, dark, focus, onClick, extOnClick, addClasses, id, placeholder, value, required, animated, extended
IptTextA text input fieldfontFam, fontSize, bgColor, color, rounded, border, borderColor, padding, cursor, hover, dark, focus, onClick, addClasses, id, placeholder, value, required, animated
LyLeftheaderA title rotated leftfontFam, fontSize, label, bgColor, color, rounded, border, borderColor, padding, cursor, height, width, margin, hover, dark, focus, onClick, addClasses, id
0.2.0

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago