Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@whop/frosted-ui

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whop/frosted-ui

Frosted is the design system used and and built by [Whop](https://whop.com).

canary
latest
npmnpm
Version
0.0.1-canary.24
Version published
Weekly downloads
95
163.89%
Maintainers
2
Weekly downloads
 
Created
Source

Welcome to Frosted UI

Frosted is the design system used and and built by Whop.

Getting Started

Prerequisites

  • React installed
  • Tailwind CSS installed and configured
  • Font Awesome access configured (Only free license required)

Installation

Install package:

npm i @whop/frosted-ui

Configure your tailwind.config.ts to use the Frosted UI theme by wrapping your config with preset:

import preset from '@whop/frosted-ui/dist/preset';

const config = preset({
  // your config here
});

export default config;

Wrap your app in the TooltipProvider component and add the Toaster as well:

Note: this example is in Next.js but you can wrap the root of any React project.

import { TooltipProvider, Toaster } from '@whop/frosted-ui';
import type { AppProps } from 'next/app';

export default function App({ Component, pageProps }: AppProps) {
  return (
    <TooltipProvider>
      <Component {...pageProps} />
      <Toaster />
    </TooltipProvider>
  );
}

That's it! You're ready to use Frosted UI. Checkout the documentation for more information about the components.

FAQs

Package last updated on 19 Aug 2024

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