1.1.2 • Published 3 years ago

@tsamantanis/react-glassmorphism v1.1.2

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

react-glassmorphism

A react UI component library for glassmorphic components

NPM JavaScript Style Guide

Example

View examples of the components here

Install

npm install --save @tsamantanis/react-glassmorphism

Usage

import React, { Component } from 'react'

import { Button } from '@tsamantanis/react-glassmorphism'
import '@tsamantanis/react-glassmorphism/dist/index.css'

class Example extends Component {
    render() {
        return <Button text="Click me" />
    }
}
import React, { Component } from 'react'

import { CustomCard } from '@tsamantanis/react-glassmorphism'
import '@tsamantanis/react-glassmorphism/dist/index.css'

class Example extends Component {
    render() {
        return (
            <CustomCard
                effectColor="#C780FF" // required
                color="#14AEFF" // default color is white
                blur={10} // default blur value is 10px
                borderRadius={0} // default border radius value is 10px
            >
                <h1>Hello</h1>
                <p>This is an example</p>
            </CustomCard>
        )
    }
}

License

MIT © tsamantanis

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago