npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

tiptap-shadcn-editor

v0.0.12

Published

A modern, customizable rich text editor built with TipTap and Shadcn UI components.

Readme

TipTap Shadcn Editor

A modern, customizable rich text editor built with TipTap and Shadcn UI components.

Features

  • 🎨 Beautiful UI with Shadcn components
  • ✨ Full rich text editing capabilities
  • 🖼️ Image upload and management
  • 🔍 Search and replace functionality
  • 🎯 Floating toolbar and menu
  • 📱 Responsive design
  • 🎯 TypeScript support
  • 🎨 Customizable themes

Installation

npm install tiptap-shadcn-editor
# or
yarn add tiptap-shadcn-editor
# or
pnpm add tiptap-shadcn-editor

Usage

1. Import the Editor and CSS in your app:

import { RichTextEditor } from 'tiptap-shadcn-editor';
import 'tiptap-shadcn-editor/dist/index.css';

2. Use the editor in your component:

<RichTextEditor className="w-full" />

Tailwind CSS Setup

If you use Tailwind CSS, make sure your tailwind.config.js includes the editor package so that Tailwind classes are not purged:

content: [
  './node_modules/tiptap-shadcn-editor/**/*.{js,ts,jsx,tsx}',
];

Quick Start

import { RichTextEditor } from 'tiptap-shadcn-editor';
import 'tiptap-shadcn-editor/dist/index.css';

function App() {
  return (
    <RichTextEditor
      onUpdate={(content) => console.log(content)}
      placeholder="Start writing..."
    />
  );
}

Exporting CSS in Your Library (for maintainers)

Make sure your package.json includes the following in the exports field so consumers can import the CSS:

"exports": {
  ".": {
    "types": "./dist/index.d.ts",
    "import": "./dist/index.js",
    "require": "./dist/index.js",
    "default": "./dist/index.js"
  },
  "./dist/index.css": "./dist/index.css"
}

Troubleshooting

  • Styles not applying?
    • Ensure you have imported the CSS file: import 'tiptap-shadcn-editor/dist/index.css';
    • Make sure your Tailwind config includes the editor package in the content array.
    • If you use custom CSS variables (e.g., --editor-text-orange), define them in your global CSS or in a parent class.
    • Restart your dev server after making changes to your config or after updating the package.

Props

| Prop | Type | Default | Description | | ---------------- | --------------------------- | ------------------------------ | ------------------------------- | | className | string | - | Additional CSS classes | | onUpdate | (content: string) => void | () => {} | Callback when content changes | | extensions | Extension[] | - | Custom TipTap extensions | | initialContent | string | - | Initial editor content | | placeholder | string | "Write, type '/' for commands" | Placeholder text | | readOnly | boolean | false | Whether the editor is read-only | | maxHeight | string | "calc(100dvh-6rem)" | Maximum height of the editor | | minHeight | string | "600px" | Minimum height of the editor |

Custom Extensions

You can add custom TipTap extensions:

import { RichTextEditor } from 'tiptap-shadcn-editor';
import 'tiptap-shadcn-editor/dist/index.css';
import { Extension } from '@tiptap/core';

const customExtension = Extension.create({
  name: 'custom',
  // ... extension configuration
});

function App() {
  return <RichTextEditor extensions={[customExtension]} />;
}

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT © Emmanuel Michael