Squircle Js

screenshot of Squircle Js
react
solid
svelte
vue

A squircle element for your favourite frontend framework!

Overview:

The figma-squircle package is designed to create squircle elements - shapes that are a mix between a square and a circle. This package provides a solution for applying corner smoothing to rectangles, resulting in squircles. It offers features like responsiveness, compatibility for various frameworks, and a lightweight size of just 2.1kB gzipped.

Features:

  • Responsive Squircle Element: Can be used as an intrinsic component.
  • No-JavaScript Fallback Solution: Provides fallback support for when JavaScript is not available.
  • CommonJS and ES6 Support: Tree-shakeable for efficient module bundling.
  • Framework Compatibility: Available for React with support for react@18, with plans for other frameworks in the future.
  • Lightweight: Only 2.1kB gzipped, ensuring fast load times.
  • Documented Usage Examples: Helps users understand how to implement the package efficiently.
react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

solid
Solid

SolidJS is a declarative JavaScript library for building user interfaces, offering a reactive programming model for efficient updates. It stands out for its reactivity system that minimizes unnecessary re-renders and its small bundle size, making it a performant choice for developing lightweight and reactive web applications.

svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

vue
Vue

Vue.js is a lightweight and flexible JavaScript framework that allows developers to easily build dynamic and reactive user interfaces. Its intuitive syntax, modular architecture, and focus on performance make it a popular choice for modern web development.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.