UNPKG
bausteine
Version:
latest (1.1.12)
1.1.12
1.1.11
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
Design System
github.com/Krutsch/bausteine
Krutsch/bausteine
bausteine
/
dist
/
components
/
Button
/
index.js
8 lines
(7 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ html }
from
"hydro-js"
;
import
createWebComponent
from
"../../createWebComponent"
;
export
default
function
Button
(
name
) {
createWebComponent
(name ??
"bau-button"
,
() =>
{
return
html
`<slot>Default</slot>`
; }, {
extendsFrom
:
"button"
}); }