# lit-squircle

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

Latest version **0.0.3** (published 2023-10-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install lit-squircle
pnpm add lit-squircle
yarn add lit-squircle
bun add lit-squircle
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2023-10-22 |
| First published | 2023-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 39.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | 133cha31 |
| Keywords | lit, web components, squircle, lit-elements |

## Links

- npm: https://www.npmjs.com/package/lit-squircle
- npm.io page: https://npm.io/package/lit-squircle

## Dependencies (2)

- [lit](https://npm.io/package/lit.md) ^2.7.6
- [figma-squircle](https://npm.io/package/figma-squircle.md) ^0.3.1

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2023-10-22
- 0.0.2 — 2023-10-03
- 0.0.1 — 2023-10-03

## 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, you just import the `lit-squircle.js` in the HTML head, then:

```html
<x-squircle radius="32">
    <a href="#">Menu 1</a>
    <a href="#">Menu 2</a>
    <a href="#">Menu 3</a>
    <a href="#">Menu 4</a>
</x-squircle>
```

## Examples

Check the `index.html` file.

---
_Source: https://npm.io/package/lit-squircle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
