1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2024-11-21 23:39:37 +01:00

🧱 move components, exports, and index files to examples directory

This commit is contained in:
Jan Andrle 2023-09-26 09:40:00 +02:00
parent 3823abc2d7
commit 7417565fa5
Signed by: jaandrle
GPG Key ID: B3A25AED155AFFAB
7 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { style, el, on, S } from '../exports.js'; import { style, el, on, S, namespace } from '../exports.js';
const className= style.host(fullNameComponent).css` const className= style.host(fullNameComponent).css`
:host form{ :host form{
display: flex; display: flex;
@ -23,6 +23,12 @@ export function fullNameComponent(){
el("strong", "Full name"), el("strong", "Full name"),
": ", ": ",
el("#text", full_name) el("#text", full_name)
),
namespace("svg").append(
el("svg", { viewBox: "0 0 240 80", style: { height: "80px", display: "block" } }).append(
//el("style", { })
el("text", { x: 20, y: 35, textContent: "Text" })
)
) )
); );
} }