Packages

A set of simple Surface components based on ant-design.

Current section

Files

Jump to
live_antd lib live_antd.ex
Raw

lib/live_antd.ex

defmodule LiveAntd do
@doc """
use LiveAntd, :view
"""
def view do
quote do
# Surface
import Surface
end
end
@doc """
use LiveAntd, :live_view
"""
def live_view do
quote do
use Surface.LiveView
end
end
@doc """
When used, dispatch to the appropriate live_view/view/etc.
"""
defmacro __using__(which) when is_atom(which) do
apply(__MODULE__, which, [])
end
end