Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 514 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 514 Bytes

How to run

This project uses vite, so just do: npm run dev

And then run the tailwind cli watcher npx tailwindcss -i ./input.css -o ./dist/output.css --watch

Example component

class Example < Component
  def data
    {
      current_text: 'Test'
    }
  end

  def watch_current_text(new_value)
    puts "Current text changed into #{new_value}!"
  end

  def render
    div do
      text current_text
    end

    input model: :current_text, class_name: 'some_class', type: 'text'
  end
end