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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@openwebf/react-shadcn-ui

v0.1.0

Published

shadcn/ui style components for WebF applications. This package provides shadcn_ui Flutter widgets wrapped as HTML custom elements for use in WebF.

Downloads

93

Readme

webf_shadcn_ui

shadcn/ui style components for WebF applications. This package provides shadcn_ui Flutter widgets wrapped as HTML custom elements for use in WebF.

Features

  • 40+ UI components matching shadcn/ui design
  • Full theming support with 12 color schemes
  • Light/Dark mode support
  • TypeScript definitions for React/Vue code generation
  • Seamless integration with WebF applications

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  webf_shadcn_ui: ^0.1.0

Quick Start

  1. Install the custom elements in your main function:
import 'package:webf_shadcn_ui/webf_shadcn_ui.dart';

void main() {
  installWebFShadcnUI();
  runApp(MyApp());
}
  1. Use the components in your HTML:
<flutter-shadcn-theme color-scheme="blue" brightness="light">
  <flutter-shadcn-card>
    <flutter-shadcn-card-header>
      <flutter-shadcn-card-title>Welcome</flutter-shadcn-card-title>
      <flutter-shadcn-card-description>Get started with shadcn components</flutter-shadcn-card-description>
    </flutter-shadcn-card-header>
    <flutter-shadcn-card-content>
      <flutter-shadcn-button variant="default">Click me</flutter-shadcn-button>
    </flutter-shadcn-card-content>
  </flutter-shadcn-card>
</flutter-shadcn-theme>

Available Components

Theming

  • <flutter-shadcn-theme> - Theme provider with color scheme and brightness support

Form Controls

  • <flutter-shadcn-button> - Button with variants (default, secondary, destructive, outline, ghost, link)
  • <flutter-shadcn-input> - Text input field
  • <flutter-shadcn-textarea> - Multi-line text input
  • <flutter-shadcn-checkbox> - Checkbox control
  • <flutter-shadcn-radio> - Radio button group
  • <flutter-shadcn-switch> - Toggle switch
  • <flutter-shadcn-select> - Dropdown select
  • <flutter-shadcn-slider> - Range slider
  • <flutter-shadcn-combobox> - Searchable select
  • <flutter-shadcn-form> - Form container with field components

Display Components

  • <flutter-shadcn-card> - Card container with header, content, footer slots
  • <flutter-shadcn-alert> - Alert message with title and description
  • <flutter-shadcn-badge> - Badge/label component
  • <flutter-shadcn-avatar> - User avatar with fallback
  • <flutter-shadcn-toast> - Toast notification
  • <flutter-shadcn-tooltip> - Hover tooltip
  • <flutter-shadcn-progress> - Progress bar
  • <flutter-shadcn-separator> - Visual separator

Navigation/Layout

  • <flutter-shadcn-tabs> - Tabbed interface
  • <flutter-shadcn-dialog> - Modal dialog
  • <flutter-shadcn-sheet> - Slide-out panel
  • <flutter-shadcn-popover> - Floating content container
  • <flutter-shadcn-breadcrumb> - Breadcrumb navigation
  • <flutter-shadcn-dropdown-menu> - Dropdown menu
  • <flutter-shadcn-context-menu> - Right-click context menu

Data Display

  • <flutter-shadcn-table> - Data table
  • <flutter-shadcn-accordion> - Collapsible sections
  • <flutter-shadcn-calendar> - Date calendar
  • <flutter-shadcn-date-picker> - Date picker with popover
  • <flutter-shadcn-time-picker> - Time picker
  • <flutter-shadcn-image> - Image with loading states

Advanced

  • <flutter-shadcn-scroll-area> - Scrollable container
  • <flutter-shadcn-skeleton> - Loading placeholder
  • <flutter-shadcn-collapsible> - Collapsible section

CSS Customization

Button Text Styling

The <flutter-shadcn-button> component supports CSS customization for text styles while automatically handling the text color based on the button variant and theme.

What CSS properties work on button children:

  • font-size / font-weight / font-family
  • letter-spacing / word-spacing
  • text-decoration / font-style
  • Other text styling properties

What's controlled by the button theme:

  • Text color (automatically set based on button variant)

Example with inline styles:

<flutter-shadcn-button variant="default">
  <span style="font-size: 18px; font-weight: bold;">Large Bold Text</span>
</flutter-shadcn-button>

Example with React and Tailwind:

<FlutterShadcnButton variant="secondary">
  <span className="text-lg font-semibold tracking-wide">Styled Text</span>
</FlutterShadcnButton>

This approach ensures:

  • CSS styles from your HTML/JSX are preserved (font-size, font-weight, etc.)
  • Text color automatically matches the button's theme variant (primary has white text, outline has dark text, etc.)

Button Gradient and Shadow

The button supports CSS background-image for gradients and box-shadow for shadows, which are passed directly to the underlying Flutter ShadButton.

Gradient example:

<flutter-shadcn-button style="background-image: linear-gradient(to right, #667eea, #764ba2);">
  Gradient Button
</flutter-shadcn-button>

Shadow example:

<flutter-shadcn-button style="box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.2);">
  Shadow Button
</flutter-shadcn-button>

Combined gradient and shadow:

<FlutterShadcnButton
  style={{
    backgroundImage: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
    boxShadow: '0 10px 20px 0 rgba(102, 126, 234, 0.4)'
  }}
>
  Gradient + Shadow
</FlutterShadcnButton>

Supported gradient syntax:

  • linear-gradient(direction, color1, color2, ...)
  • linear-gradient(angle, color1 stop1, color2 stop2, ...)

Supported shadow syntax:

  • box-shadow: offset-x offset-y blur-radius spread-radius color

Color Schemes

The following color schemes are available:

  • blue, gray, green, neutral, orange, red, rose, slate, stone, violet, yellow, zinc

Set the color scheme on the theme provider:

<flutter-shadcn-theme color-scheme="violet" brightness="dark">
  <!-- Your content -->
</flutter-shadcn-theme>

Generating React/Vue Components

Use the WebF CLI to generate framework-specific packages:

# React components
webf codegen webf-shadcn-react \
  --flutter-package-src=./native_uis/webf_shadcn_ui \
  --framework=react

# Vue components
webf codegen webf-shadcn-vue \
  --flutter-package-src=./native_uis/webf_shadcn_ui \
  --framework=vue

License

Apache License 2.0