Packages

Generates type-safe Phoenix.Component modules from DaisyUI documentation. Parses DaisyUI docs, detects variants, and creates production-ready components.

Current section

Files

Jump to
oopsie_daisy lib oopsie_daisy_components mockup_phone.ex
Raw

lib/oopsie_daisy_components/mockup_phone.ex

defmodule OopsieDaisy.Components.MockupPhone do
@moduledoc """
MockupPhone component with DaisyUI styling.
Generated from: tmp/daisyui/packages/docs/src/routes/(routes)/components/mockup-phone/+page.md
## Examples
<.mockup_phone>Content</.mockup_phone>
"""
use Phoenix.Component
# Component
attr(:rest, :global, include: ~w(disabled form name value type))
@doc "Additional CSS classes"
attr(:class, :string, default: "")
@doc """
Renders a MockupPhone component.
"""
slot(:inner_block, required: true)
def mockup_phone(assigns) do
~H"""
<div class={["mockup", @class]} {@rest}>
<%= render_slot(@inner_block) %>
</div>
"""
end
end