1.0.27 • Published 1 year ago

lighter-components v1.0.27

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Lighter Components

components

Getting starter

Install

npm i lighter-components

Components

TextFiled

Customized input

Importation

import LightTextfield from 'lighter-components/material/LightTextfield'

Attributes

variant

Defines which textfield style

Variant textfield

Variant types

<LightTextfield label="Email" variant='outline' /> 
<LightTextfield label="Email" variant='default' />
color

Sets the color of the element

colorgif

Color types

<LightTextfield label="Email" color='lightblue' />
<LightTextfield label="Email" color='lightgreen' />
<LightTextfield label="Email" color='lightpurple' />
<LightTextfield label="Email" color='lightyellow' />
<LightTextfield label="Email" color='lightred' />
<LightTextfield label="Email" color='dark' />
type

Sets the type of the element (Password or Text)

Types types

<LightTextfield label="Email" type='password' />
<LightTextfield label="Email" type='text' />
label

Defines the name that will appear as a placeholder

Label example

<LightTextfield label="Email" />

Button

buttons

Importation

import LightButton from 'lighter-components/material/LightButton'

Attributes

color

Sets the color of the element

Color types

<LightButton label="Send" color='lightblue' />
<LightButton label="Send" color='lightgreen' />
<LightButton label="Send" color='lightpurple' />
<LightButton label="Send" color='lightyellow' />
<LightButton label="Send" color='lightred' />
<LightButton label="Send" color='dark' />
label

Defines the name that will appear as a button

Label example

<LightButton label="Send" />

Modal

Captura de tela de 2023-02-15 11-05-20

Importation

import LightModal from 'lighter-components/material/LightModal'

Attributes

open

Defines whether the modal is open or not

Open example

<LightModal open={*boolean variable*} />
onClose

Defines a handler to close the modal

Open example

<LightModal open={*boolean variable*} onClose={*handler*} />

Icons

Importation

import WarningIcon from 'lighter-components/material-icons/WarningIcon'
import InfoIcon from 'lighter-components/material-icons/InfoIcon'
import ErrorIcon from 'lighter-components/material-icons/ErrorIcon'
import SuccessIcon from 'lighter-components/material-icons/SuccessIcon'

Conclusion

This library is still in early versions, new components will arrive later.

Contact -> wesleyalencar@espacocariri.com

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago