Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rpxl/recast

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rpxl/recast

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source
Recast

Build components once. Use everywhere.

codecov build Version License: MIT

TL;DR

Recast is a fundamentally different approach to building React components to maximise reusability.

What is Recast?

Recast is not just a collection of utilities; it is an approach/pattern to building truly reusable component primitives by abstracting the theme layer from the internal workings of a component.

The specific values that an Recast "primitive" can receive are not specified within the component, instead these are defined by wrapping the component with a styles definition that will form the theme API.

Features

Tailwind friendly

Recast works seamlessly with CSS frameworks like Tailwind CSS, or use any flavour of css you like.

TypeScript at its core

Recast is brought to you courtesy of TypeScript. Types are what make all this possible.

Tiny

At only 1.9kb gzipped and zero dependencies, Recast packs a big punch for such a small utility library.

No more prop bloat

Define your own component theme API. Include only the props you need and nothing more. Kitchen sink not included!

FAQs

Package last updated on 18 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc