freedive/lib/liliform/component.ex

17 lines
315 B
Elixir

defmodule Liliform.Component do
defmacro __using__(_) do
quote do
# Bulma prefixes
use Phoenix.Component,
global_prefixes: [
"is-",
"has-"
]
alias Phoenix.LiveView.JS
import Liliform.Translation
import Liliform.BulmaHelper
end
end
end