Welcome to the Liquid Glass Svelte repository! This project provides a Svelte component that mimics Apple's Liquid Glass effect. With this component, you can enhance your web applications with a modern, sleek design that captures the essence of Apple's aesthetic.
To get started, install the package using npm:
npm install liquid-glass-svelte
Once installed, you can start using the component in your Svelte application.
To use the Liquid Glass component, import it into your Svelte file:
<script>
import LiquidGlass from 'liquid-glass-svelte';
</script>
<LiquidGlass>
<h1>Your Content Here</h1>
</LiquidGlass>
Make sure to check out the Releases section for the latest updates and download the necessary files.
Hereβs a simple example of how to implement the Liquid Glass effect:
<script>
import LiquidGlass from 'liquid-glass-svelte';
</script>
<LiquidGlass>
<h2>Hello, World!</h2>
<p>This is a basic example of the Liquid Glass effect.</p>
</LiquidGlass>
You can customize the appearance of the Liquid Glass component by passing in styles:
<style>
.custom-glass {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 20px;
}
</style>
<LiquidGlass class="custom-glass">
<h2>Custom Styled Glass</h2>
</LiquidGlass>
The Liquid Glass component accepts several props to customize its behavior:
class
: Add custom classes for styling.style
: Inline styles for additional customization.content
: The content to display inside the glass effect.Prop | Type | Description |
---|---|---|
class | String | Custom CSS classes for styling. |
style | Object | Inline styles for the component. |
content | String | The content to display inside. |
We welcome contributions! If you would like to contribute to the Liquid Glass Svelte project, please follow these steps:
Please ensure that your code adheres to our coding standards and includes appropriate tests.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any inquiries or issues, please reach out via GitHub issues or contact me directly at [email protected].
Feel free to visit the Releases section for the latest updates. We hope you enjoy using the Liquid Glass Svelte component!