mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
9 lines
257 B
JavaScript
9 lines
257 B
JavaScript
import './base.css'
|
|
|
|
export function createButton(className) {
|
|
const button = document.createElement('button')
|
|
button.className = `btn ${className}`
|
|
document.body.appendChild(button)
|
|
button.textContent = `button ${getComputedStyle(button).color}`
|
|
}
|