smooth-components 1.1.5 β 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +48 -22
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jaime Torres
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# π¦ smooth-components
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Elegant, customizable, and accessible React components.**
|
|
4
|
+
|
|
5
|
+
`smooth-components` is a growing library of beautifully designed, reusable UI components for React. Whether you're building a portfolio, dashboard, or e-commerce site, these components help you move fast and look greatβwithout sacrificing accessibility or flexibility.
|
|
4
6
|
|
|
5
7
|
[](https://www.npmjs.com/package/smooth-components)
|
|
6
8
|
[](https://opensource.org/licenses/MIT)
|
|
@@ -9,7 +11,7 @@
|
|
|
9
11
|
|
|
10
12
|
## π Installation
|
|
11
13
|
|
|
12
|
-
Install
|
|
14
|
+
Install via **npm** or **yarn**:
|
|
13
15
|
|
|
14
16
|
```bash
|
|
15
17
|
npm install smooth-components
|
|
@@ -21,9 +23,9 @@ yarn add smooth-components
|
|
|
21
23
|
|
|
22
24
|
## πΌοΈ Poster Component
|
|
23
25
|
|
|
24
|
-
The `Poster` component
|
|
26
|
+
The `Poster` component is ideal for showcasing images like movie posters, artworks, product covers, or any visual element that needs emphasis. It includes styling options for borders, size, opacity, and an optional animated **glint** effect.
|
|
25
27
|
|
|
26
|
-
### β
Usage
|
|
28
|
+
### β
Example Usage
|
|
27
29
|
|
|
28
30
|
```tsx
|
|
29
31
|
import { Poster } from 'smooth-components'
|
|
@@ -44,33 +46,57 @@ export default function App() {
|
|
|
44
46
|
}
|
|
45
47
|
```
|
|
46
48
|
|
|
49
|
+
---
|
|
50
|
+
|
|
47
51
|
### π§ Props
|
|
48
52
|
|
|
49
|
-
| Prop | Type | Default
|
|
50
|
-
| -------------------- | ------------------ |
|
|
51
|
-
| `alt` | `string` | β
|
|
52
|
-
| `src` | `string` | β
|
|
53
|
-
| `styles` | `object` | β
|
|
54
|
-
| `styles.opacity` | `number \| string` | `
|
|
55
|
-
| `styles.width` | `number \| string` | `'
|
|
56
|
-
| `styles.height` | `number \| string` | `'
|
|
57
|
-
| `styles.borderColor` | `string` | `'
|
|
58
|
-
| `hasGlintEffect` | `boolean` | `true`
|
|
53
|
+
| Prop | Type | Default | Description |
|
|
54
|
+
| -------------------- | ------------------ | ------------------------------ | --------------------------------------------------------- |
|
|
55
|
+
| `alt` | `string` | β | Descriptive alt text for accessibility. |
|
|
56
|
+
| `src` | `string` | β | Path or URL to the image. |
|
|
57
|
+
| `styles` | `object` | β | Optional custom styles for the container. |
|
|
58
|
+
| `styles.opacity` | `number \| string` | `0.91` | Opacity of the image container. |
|
|
59
|
+
| `styles.width` | `number \| string` | `'auto'` | Width of the image container. |
|
|
60
|
+
| `styles.height` | `number \| string` | `'auto'` | Height of the image container. |
|
|
61
|
+
| `styles.borderColor` | `string` | `'oklch(12.9% 0.042 264.695)'` | Color of the border around the poster. |
|
|
62
|
+
| `hasGlintEffect` | `boolean` | `true` | Enables a subtle animated glint overlay across the image. |
|
|
59
63
|
|
|
60
|
-
> π‘
|
|
64
|
+
> π‘ You can use numbers (interpreted as `px`) or standard CSS units (`px`, `%`, `em`, etc.) for style values. The `glint` effect adds a stylish shimmer animation for extra polish.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## π§© More Components Coming Soon
|
|
69
|
+
|
|
70
|
+
This is just the beginning. Stay tuned for new additions including:
|
|
71
|
+
|
|
72
|
+
* Modals
|
|
73
|
+
* Cards
|
|
74
|
+
* Loaders
|
|
75
|
+
* And more...
|
|
61
76
|
|
|
62
77
|
---
|
|
63
78
|
|
|
64
79
|
## π License
|
|
65
80
|
|
|
66
|
-
|
|
67
|
-
See [LICENSE](LICENSE)
|
|
81
|
+
MIT Β© [Jaime Torres](https://github.com/jaime00)
|
|
82
|
+
See the full license in [LICENSE](./LICENSE).
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## π¬ Connect with Me
|
|
87
|
+
|
|
88
|
+
* π [Portfolio](https://jaime00portfolio.netlify.app/)
|
|
89
|
+
* πΌ [LinkedIn](https://www.linkedin.com/in/jaime00)
|
|
90
|
+
* π§ [Email](mailto:imjaimetorresv@gmail.com)
|
|
91
|
+
* π [GitHub](https://github.com/jaime00)
|
|
68
92
|
|
|
69
93
|
---
|
|
70
94
|
|
|
71
|
-
|
|
95
|
+
Let me know if youβd like to add:
|
|
96
|
+
|
|
97
|
+
* Usage with Tailwind or a specific framework
|
|
98
|
+
* Storybook/preview link
|
|
99
|
+
* Development & contribution guide
|
|
100
|
+
* More animated gifs/screenshots
|
|
72
101
|
|
|
73
|
-
|
|
74
|
-
* πΌ **LinkedIn**: [linkedin.com/in/jaime00](https://www.linkedin.com/in/jaime00)
|
|
75
|
-
* π§ **Email**: [imjaimetorresv@gmail.com](mailto:imjaimetorresv@gmail.com)
|
|
76
|
-
* π **GitHub**: [github.com/jaime00](https://github.com/jaime00)
|
|
102
|
+
Want me to help generate a demo GIF or improve visuals? Happy to assist.
|
package/package.json
CHANGED