A Ruby component library for DaisyUI using Phlex

PhlexyUI is a component library built with Phlex, a Ruby gem for building fast object-oriented HTML components. On top of DaisyUI, the most popular component library for Tailwind CSS.

# Card

1
Card :base_100, class: "shadow-xl" do |card|
2
  figure do
3
    img(src:)
4
  end
5
6
  card.body do
7
    card.title do
8
      "Shoes!"
9
    end
10
11
    p do
12
      "If a dog chews shoes whose shoes does he choose?"
13
    end
14
15
    card.actions class: "justify-end" do
16
      Button :primary do
17
        "Buy Now"
18
      end
19
    end
20
  end
21
end
Shoes!

If a dog chews shoes whose shoes does he choose?