2.7.9 • Published 3 years ago

sharlq-comp-lib v2.7.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Creating my own component library

for learning purposes and to develope it and use it in the futuer i have published my own library

if you have any suggestions or modifications to any components or advice i am open to pull requests and suggestions

components

Select

its hard to syle the HTML select so i ahve created select component that can be styled easily
Select
it take two props
1. items : an array that has the items of the list 1. onItem : a function that git triggered when you press the item this function have its list item as an argument

usage

import {Select} from 'sharlq-comp-lib'
 <Select
  title={"Select From"},
    items={["firstItem","secondItem","thirdItem"]},
    onItem = {handleItemFunction},
    width = {"175px"}}/>

Button

a simple customizable button

usage

import {Button} from 'sharlq-comp-lib'
 <Button
  label={"press here"},
   {...props}/>

Card

i have added a simple card
there is also CardImg compnent to provide container to add image to the card
and also the CardBody component that provides a container to add text to the card

note here both the CardImg and CardBody are optional

Card

usage

import {Card,CardImg,CardBody} from 'sharlq-comp-lib'
 <Card>
 <CardImg src={"url"} alt={"message"}/>
 <CardBody>
 {children}
 </CardBody>
 {children}
 </Card>

Animated Card

i have created animated card that hovers relative to the position of your cursor over it
Animated Card

usage

you can add the classes using yourClass prop

import {CardAnimated} from 'sharlq-comp-lib'
 <CardAnimated yourClass={"classnamr"}>
 {children}
 </CardAnimated>
2.7.9

3 years ago

2.6.8

3 years ago

2.5.8

3 years ago

2.4.8

3 years ago

2.3.8

3 years ago

2.2.8

3 years ago

2.1.8

3 years ago

2.0.8

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.1.0

3 years ago