Current section

Files

Jump to
bitstyles_phoenix lib bitstyles_phoenix.ex
Raw

lib/bitstyles_phoenix.ex

defmodule BitstylesPhoenix do
@moduledoc """
Documentation for BitstylesPhoenix.
## Setup & Getting started
Check out the main [README](README.md).
## Usage
Use by either `BitstylesPhoenix.Components` or importing the components individually.
```elixir
use BitstylesPhoenix.Components
# or
import BitstylesPhoenix.Button
```
Then call the `ui_*` helpers from the components usable in your views.
```elixir
ui_button("Save", type: "submit")
# => <button class="a-button" type="submit">Save</button>
```
Checkout the components for examples and showcases.
#{
BitstylesPhoenix.MixProject.bitstyles_phoenix_components()
|> Enum.map(&"- `#{Module.split(&1) |> Enum.join(".")}`")
|> Enum.join("\n")
}
"""
end