An open API service indexing awesome lists of open source software.

https://github.com/leechael/lit-squircle

Squircle, the Web Component implementation.
https://github.com/leechael/lit-squircle

lit-element squircle web-components

Last synced: about 2 months ago
JSON representation

Squircle, the Web Component implementation.

Awesome Lists containing this project

README

          

# Squircle, the Web Component implementation

This is an implementation of Squircle, build on top of [figma-squircle](https://figma-squircle.vercel.app/).

The good parts of this implementation:

- Build with Lit and export as Web Component, so you can use it in any standard web browser without any JS framework.
- It's a container element and adjusting size dynamically like normal HTML block element. It listen to the resize event, too.

Limitation:

- No border supported. Need further work on the SVG and this is a tiny holiday project.
- No box shadow supported.
- Partial & buggy gradient background supported.
- Package size. not yet optimizing the final artifact size.

## CAUTION!

No yet production ready. If you want a more flexible implementation, consider use
[figma-squircle](https://figma-squircle.vercel.app/) directly.

## Usage

For pure HTML page, put this line in `