liquid-glass-svelte Svelte Themes

Liquid Glass Svelte

`liquid-glass-svelte` offers a sleek way to implement Apple's Liquid Glass effect in your Svelte projects. 🌟 Easily customize the appearance with options to fit your design needs. πŸ› οΈ

Liquid Glass Svelte 🌊✨

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.

Table of Contents

Features

  • Svelte Component: Built with Svelte for optimal performance.
  • Apple's Design Language: Reflects the clean, modern look of Apple's Liquid Glass.
  • Responsive: Works well on various screen sizes and devices.
  • Customizable: Easy to tweak styles to fit your project needs.
  • Lightweight: Minimal footprint for faster load times.

Installation

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.

Usage

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.

Examples

Basic Example

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>

Custom Styling

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>

API

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.

Props

Prop Type Description
class String Custom CSS classes for styling.
style Object Inline styles for the component.
content String The content to display inside.

Contributing

We welcome contributions! If you would like to contribute to the Liquid Glass Svelte project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your branch to your forked repository.
  5. Create a pull request.

Please ensure that your code adheres to our coding standards and includes appropriate tests.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

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!

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes