fancy-components


An UI components library with Web Components

Translations: 🇨🇳 中文文档

Documentation

https://fancy-components.github.io

Installation

npm

npm i fancy-components

yarn

yarn add fancy-components

pnpm

pnpm i fancy-components

Quick Start

<fc-arrow-btn>Button</fc-arrow-btn>

<script>
import { FcArrowBtn } from 'fancy-components'

/* eslint-disable no-new */
new FcArrowBtn()
</script>

<style>
fc-arrow-btn {
  --color: black;
}
</style>

API


FcBubbles

FcBubbles CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colormain colornormal css color value#1cd
--widthwidthnormal css length valuefit-content
--heightheightnormal css length valuefit-content
FcBubbles Attributes (and properties)
AttributemeaningTypeDefault
activecontrol animation'true' | 'false''false'
clickuse click to control animationexist this attribute or non-existentnon-existent

FcWaveFilter

FcWaveFilter CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colorwave colornormal css color valueblack
--widthwidthnormal css length valuefit-content
--heightheightnormal css length valuefit-content
FcWaveFilter Attributes (and properties)
AttributemeaningTypeDefault
colorwave colorstring (normal css color value)'black'
duranimate durationnumber (greater than 0)3
amplitudewave amplitudenumber1
delayanimation delaynumber (greater than 0)0
modeanimation mode'alpha' | 'luminance' | 'img' | 'slideshow''alpha'

FcWarpBtn

FcWarpBtn CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colormain colornormal css color value#1cd
--widthwidthnormal css length value200px
--heightheightnormal css length value40px
--shadow-colorshadow colornormal css length valuergba(0, 0, 0, .5)
FcWarpBtn Attributes (and properties)
AttributemeaningTypeDefault
text-align (textAlign property)text align'left' | 'center' | 'right''right'

Fc3DBtn

Fc3DBtn CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colormain colornormal css color value#1cd
--widthwidthnormal css length value100px
--heightheightnormal css length value36px
--cover-colorcover colornormal css length value#0005
--shadow-colorshadow colornormal css length value#0008
--inset-shadow-colorinset shadow colornormal css length value#fffc
--inset-shadow-color-active(when active) inset shadow colornormal css length valuevar(--inset-shadow-color)
Fc3DBtn Attributes (and properties)
AttributemeaningTypeDefault
text-align (textAlign property)text align'left' | 'center' | 'right''right'

FcArrowBtn

FcArrowBtn CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colormain colornormal css color value#1cd
--widthwidthnormal css length value100px
--heightheightnormal css length value30px
FcArrowBtn Attributes (and properties)
AttributemeaningTypeDefault
rightarrow to rightexist this attribute or non-existentnon-existent

FcUnderlineBtn

FcUnderlineBtn CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colormain colornormal css color value#1cd
--widthwidthnormal css length value100px
--heightheightnormal css length value30px

FcPixelBtn

FcPixelBtn CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colormain colornormal css color value#1cd
--widthwidthnormal css length value100px
--heightheightnormal css length value40px

FcDblWarpBtn

FcDblWarpBtn CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colormain colornormal css color value#1cd
--widthwidthnormal css length value180px
--heightheightnormal css length value40px
--shadow-colorshadow colornormal css color value#0005

FcParenthesesBtn

FcParenthesesBtn CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colormain colornormal css color value#1cd
--widthwidthnormal css length value80px
--heightheightnormal css length value30px

FcRoundBtn

FcRoundBtn CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colormain colornormal css color value#1cd
--widthwidthnormal css length value100px
--heightheightnormal css length value40px

FcTypingInput

FcTypingInput CSS Properties
CSS PropertymeaningOptional ValuesDefault
--colormain colornormal css color value#caf
--widthwidthnormal css length value220px
--heightheightnormal css length value40px
--border-colorborder colornormal css color value#caf
--border-color-focus(when focus) border colornormal css color valuevar(--color)
--border-color-hover(when hover) border colornormal css color valuevar(--border-color-hover)
--border-radiusborder radiusnormal css length value4px
--box-shadow-focus(when focus) box shadownormal css box-shadow value0 0 6px var(--border-color-focus)
--circle-colorcircle colornormal css color value#0003
--circle-color-hover(when hover) circle colornormal css color valuevar(--circle-color)
--placeholder-colorplaceholder colornormal css color value#0005
--placeholder-color-focus(when focus) placeholder colornormal css color valuevar(--border-color-focus)
--placeholder-animate-colorplaceholder animate colornormal css color valuered
--placeholder-animate-title-colorplaceholder animate title colornormal css color value#00ff6b
--placeholder-shadowplaceholder shadownormal css text-shadow valuenone
--stripe-color(when disabled) stripe colornormal css color value#0003
--stripe-degree(when disabled) stripe degreenumber45
--disabled-filter(when disabled) filternormal css filter valueopacity(80%) grayscale(100%)
FcTypingInput Attributes (and properties)
AttributemeaningTypeDefault
whitemain color to whiteexist this attribute or non-existentnon-existent
redmain color to redexist this attribute or non-existentnon-existent

FcChina

FcChina CSS Properties
CSS PropertymeaningOptional ValuesDefault
--widthwidthnormal css length value300px
--heightheightnormal css length value200px
--star-stroke-color(when stroke) star colornormal css color valuered
--star-fill-color(when fill) star colornormal css color valuered
--flag-stroke-color(when stroke) flag colornormal css color valuered
--delayanimation delaynormal css time value0s
--duranimation durationnormal css time value6.6s