DEV Community

Cover image for Phoenix Liveview components for Shadcn UI
Dung Nguyen
Dung Nguyen

Posted on • Updated on

Phoenix Liveview components for Shadcn UI

I'm a fan of Shadcn UI library for its neat and clean components. Recently, I'm playing with Phoenix Liveview components, and I though why don't I port Shadcn UI to Phoenix Liveview.

My goal is keeping the tags as much similar to original library as possible. And not to build wrapper components as default generated CoreComponents.

Here is a sample page that ported:

Image description

And the result is what you can found on https://salad-storybook.fly.dev/.

GitHub repo:

GitHub logo bluzky / salad_storybook

Phoenix liveview components inspired by shadui

SaladStorybook

Sample page

Salad UI is a collection of phoenix live view component inspired by shadui Currently these components are under heavy development and cannot be used as separated library.

How to start Story book.

  1. Clone this repository

  2. Install node modules

cd assets && yarn

  1. Install dependency & start
mix deps.get
mix phx.server

Now you can visit localhost:4000 from your browser.

List of components

  • Accordion
  • Alert
  • Alert Dialog
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Card
  • Carousel
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Context Menu
  • Dialog
  • Drawer
  • Dropdown Menu
  • Form
  • Hover Card
  • Input
  • Input OTP
  • Label
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Separator
  • Sheet
  • Skeleton
  • Slider
  • Switch
  • Table
  • Tabs
  • Textarea
  • Tooltip



It's still my experiment and not ready for production. You can play with it and share your feedback, that would help me a lot.

Thanks.

Top comments (1)

Collapse
 
sawyerwolfe profile image
Sawyer Wolfe

Interesting project! How challenging was it to port Shadcn UI to Phoenix Liveview?