2.1.0 • Published 8 months ago

@gfazioli/mantine-reflection v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Mantine Reflection Component


NPM version NPM Downloads NPM Downloads NPM License

Overview

This component is created on top of the Mantine library.

Mantine UI Library

Adds a reflection effect to a component. It simply wraps the content to be reflected.

Mantine Extensions Demo and Documentation Mantine Extensions HUB

šŸ‘‰ You can find more components on the Mantine Extensions Hub library.

Installation

npm install @gfazioli/mantine-reflection

or

yarn add @gfazioli/mantine-reflection

After installation import package styles at the root of your application:

import '@gfazioli/mantine-reflection/styles.css';

Usage

import { Reflection } from '@gfazioli/mantine-reflection';

function Demo() {
  return (
    <Reflection>
      <img
        width={150}
        style={{ display: 'block', borderRadius: '50%' }}
        alt="test"
        src="https://source.unsplash.com/9QmbsTDAI4g/150x150"
      />
    </Reflection>
  );
}

Props

NameTypeDescription
childrenReact.ReactNodeChildren to reflect
disableChildrenbooleanDisable the children
reflectionBlurnumberThe blur of the reflection
reflectionDistancenumber | MantineSize | (string & {})The distance of the reflection from the original element
reflectionEndnumberThe end of the reflection (gradient)
reflectionOpacitynumberThe opacity of the reflection
reflectionStartnumberThe start of the reflection (gradient)
reflectionStretchnumberThe stretch of the reflection. May you should adjust the reflectionDistance
shadowbooleanShadow props
shadowBlurnumberThe blur of the shadow
shadowColorstringThe color of the shadow
shadowOffsetnumberThe offset of the shadow
shadowOpacitynumberThe opacity of the shadow
shadowScaleXnumberThe scale of the shadow in the x-axis
shadowScaleYnumberThe scale of the shadow in the y-axis
shadowSizenumber | MantineSize | (string & {})The size of the shadow
1.1.1

12 months ago

1.1.0

12 months ago

1.0.0

1 year ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

1.1.7

10 months ago

1.1.6

10 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.3

12 months ago

1.1.2

12 months ago

2.0.2

8 months ago

2.1.0

8 months ago

2.0.1

8 months ago

2.0.0

9 months ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago