LiveAntd(WIP)

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

Table of contents

Getting started

def deps do
  [
    {:live_antd, github: "hc360-elixir/live_antd"}
  ]
end
  def view do
    quote do
      # ... existing config
      # Include shared imports and aliases for views
      unquote(view_helpers())

      # live_antd
      use LiveAntd, :view
    end
  end
defmodule DummyWeb.PageLive do
  use DummyWeb, :live_view

  #... existing code

  use LiveAntd, :live_view

  alias LiveAntd.Components.Button

  def render() do
  ~H"""
    <Button
      type="primary"
      size="middle"
    >
      Hello LiveAntd
    </Button>
  """
  end
end

TODO's

See

Demo

The dummy app shows a simple live_antd example.

Clone the repository.

https://github.com/hc360-elixir/live_antd

Change directory

$ cd dummy

Run mix

$ mix deps.get && yarn --cwd=assets

Start the Phoenix server

$ mix phx.server

Open your browser, and visit http://localhost:4000

Contributing

Bug report or pull request are welcome.

Make a pull request

  1. Fork it
  2. Create your feature branch (git checkout -b feat/my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feat/my-new-feature)
  5. Create new Pull Request

Please write unit test with your code if necessary.

License

The gem is available as open source under the terms of the MIT License.