UNPKG

v0-rails

Version:

Convert React/JSX + Tailwind UI code from v0.dev to Rails ViewComponent classes and ERB templates with automatic slot detection, icon handling, and route generation

15 lines (12 loc) 338 B
import { Controller } from "@hotwired/stimulus" // Converted from React component: Card export default class extends Controller { connect() { // Controller connected to DOM console.log("card controller connected") } click(event) { // TODO: Implement onClick logic console.log("click event triggered", event) } }