nuxt-fela
Add Fela a small, high-performant and framework-agnostic toolbelt to handle state-driven styling in JavaScript to Nuxt.
Setup
- Add
nuxt-fela
dependency using yarn or npm to your project
yarn add nuxt-fela
- Add
nuxt-fela
tomodules
section ofnuxt.config.js
{
modules: [
'nuxt-fela'
],
fela: {
components: ['Button', 'DatePicker'],
locale: 'fr',
},
}
or
{
modules: [
[
'nuxt-fela',
{
components: ['Button', 'DatePicker'],
locale: 'fr',
},
],
],
}
- Add Element UI styles.
Properties
- name:
alignContent
aC
type: AlignContent
- name:
alignItems
aI
type: AlignItems
- name:
alignSelf
aS
type: AlignSelf
- name:
animation
an
type: string
- name:
animationDelay
anDe
type: NumberOrString
unit: second- name:
animationDirection
anDi
type: Animationdirection
- name:
animationDuration
anDu
type: NumberOrString
unit: second- name:
animationFillMode
anFM
type: AnimationFillMode
- name:
animationIterationCount
anIC
type: AnimationIterationCount
- name:
animationName
anNa
type: string
- name:
animationPlayState
anPS
type: AnimationPlayState
- name:
animationTimingFunction
anTF
type: string
- name:
backfaceVisibility
bfV
type: BackfaceVisibility
- name:
background
bg
type: string
- name:
backgroundAttachment
bgA
type: BackgroundAttachment
- name:
backgroundBlendMode
bgBM
type: string
- name:
backgroundClip
bgCl
type: BackgroundClip
- name:
backgroundColor
bgC
type: string
- name:
backgroundImage
bgI
type: string
- name:
backgroundOrigin
bgO
type: BackgroundOrigin
- name:
backgroundPosition
bgP
type: string
- name:
backgroundRepeat
bgR
type: string
- name:
backgroundSize
bgS
type: string
- name:
border
b
type: string
- name:
borderBottom
bB
type: string
- name:
borderBottomColor
bBC
type: string
- name:
borderBottomLeftRadius
bBLRd
type: NumberOrString
- name:
borderBottomRightRadius
bBRRd
type: NumberOrString
- name:
borderBottomStyle
bBS
type: string
- name:
borderBottomWidth
bBW
type: NumberOrString
- name:
borderCollapse
bCo
type: BorderCollapse
- name:
borderColor
bC
type: string
- name:
borderLeftColor
bLC
type: string
- name:
borderLeftStyle
bLS
type: string
- name:
borderLeftWidth
bLW
type: NumberOrString
- name:
borderRadius
bRd
type: NumberOrString
- name:
borderRightColor
bRC
type: string
- name:
borderRightStyle
bRS
type: string
- name:
borderRightWidth
bRW
type: NumberOrString
- name:
borderStyle
bS
type: string
- name:
borderTopColor
bTC
type: string
- name:
borderTopLeftRadius
bTLRd
type: NumberOrString
- name:
borderTopRightRadius
bTRRd
type: NumberOrString
- name:
borderTopStyle
bTS
type: string
- name:
borderTopWidth
bTW
type: NumberOrString
- name:
borderWidth
bW
type: NumberOrString
- name:
bottom
b
type: NumberOrString
- name:
color
c
type: string
- name:
content
co
type: AlignItems
- name:
cursor
cu
type: AlignSelf
- name:
direction
di
type: alignSelf
- name:
display
d
type: alignSelf
- name:
elevation
el
type: alignSelf
- name:
flex
fl
type: alignSelf
- name:
flexBasis
flB
type: alignSelf
- name:
flexDirection
flD
type: alignSelf
- name:
flexGrow
flG
type: alignSelf
- name:
flexShrink
flS
type: alignSelf
- name:
flexWrap
flW
type: alignSelf
- name:
fontFamily
fF
type: alignSelf
- name:
fontSize
fS
type: alignSelf
- name:
fontStyle
anTF
type: alignSelf
- name:
fontVariant
fV
type: alignSelf
- name:
fontWeight
fW
type: alignSelf
- name:
height
h
type: alignSelf
- name:
justifyContent
jC
type: alignSelf
- name:
left
l
type: alignSelf
- name:
letterSpacing
lS
type: alignSelf
- name:
lineHeight
lH
type: alignSelf
- name:
marginBottom
mB
type: alignSelf
- name:
marginLeft
mL
type: alignSelf
- name:
marginRight
mR
type: alignSelf
- name:
marginTop
mT
type: alignSelf
- name:
maxHeight
maxH
type: alignSelf
- name:
maxWidth
maxW
type: alignSelf
- name:
minHeight
minH
type: alignSelf
- name:
minWidth
minW
type: alignSelf
- name:
opacity
o
type: alignSelf
- name:
order
anTF
type: alignSelf
- name:
outlineColor
ouC
type: alignSelf
- name:
outlineWidth
ouW
type: alignSelf
- name:
overflow
ov
type: alignSelf
- name:
paddingBottom
mB
type: alignSelf
- name:
paddingLeft
mL
type: alignSelf
- name:
paddingRight
mR
type: alignSelf
- name:
paddingTop
mT
type: alignSelf
- name:
position
p
type: alignSelf
- name:
right
r
type: alignSelf
- name:
textAlign
tA
type: alignSelf
- name:
textDecorationColor
tDC
type: alignSelf
- name:
textDecorationLine
tDL
type: alignSelf
- name:
textDecorationStyle
tDS
type: alignSelf
- name:
top
t
type: alignSelf
- name:
transform
tr
type: alignSelf
- name:
width
w
type: NumberOrString
unit: rem
- name:
zIndex
zI
type: ZIndex