Logo

dev-resources.site

for different kinds of informations.

Phoenix Liveview components for Shadcn UI

Published at
5/19/2024
Categories
elixir
phoenix
liveview
Author
bluzky
Categories
3 categories in total
elixir
open
phoenix
open
liveview
open
Author
6 person written this
bluzky
open
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. Clone https://github.com/bluzky/salad_ui at the same directory with this repo

  3. 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.

phoenix Article's
30 articles in total
Favicon
Pseudolocalization in Phoenix with gettext_pseudolocalize
Favicon
Unlocking the Power of Elixir Phoenix and Rust: A Match Made for High-Performance Web Applications
Favicon
Sql commenter with postgrex
Favicon
Phoenix LiveView is slot empty?
Favicon
Bridging the Gap: Simplifying Live Component Invocation in Phoenix LiveView
Favicon
Find and Fix N+1 Queries Using AppSignal for a Phoenix App in Elixir
Favicon
Managing Distributed State with GenServers in Phoenix and Elixir
Favicon
Complete Guide: Setting up VS Code for Elixir and Phoenix Development
Favicon
A Complete Guide to Phoenix for Elixir Monitoring with AppSignal
Favicon
Better LiveView Hooks with Typescript
Favicon
Scaling Your Phoenix App in Elixir with FLAME
Favicon
Running Elixir Phoenix on Windows
Favicon
How to use gettext in phoenix?
Favicon
Custom Instrumentation for a Phoenix App in Elixir with AppSignal
Favicon
Building a Table of Contents Component for a Phoenix Blog
Favicon
Mastering Phoenix Framework - Part 2
Favicon
Mobile app development with LiveView Native and Elixir. Part - 3
Favicon
How to integrate Tabler Icons into your Phoenix project
Favicon
Mobile app development with LiveView Native and Elixir. Part - 2
Favicon
Mobile app development with LiveView Native and Elixir
Favicon
(Unofficial) Getting Started with Elixir Phoenix Guide
Favicon
Using Ecto (without Db) for validating Phoenix form
Favicon
API Prototypes with dbb: Another step to better prototypes
Favicon
Adding stream_async() to Phoenix LiveView
Favicon
SaladUI - Implement avatar component for Phoenix LiveView
Favicon
Connectivity status with Phoenix LiveView
Favicon
Taming data with Ecto.Enum and Ecto.Type
Favicon
ecto's cast/4 function explained
Favicon
Phoenix Liveview components for Shadcn UI
Favicon
How to run a local Phoenix app on another machine

Featured ones: