Use the source below in your application. Try the interactive component in Playground or Examples.
import '@blukavantui/community/theme.css'
import {createLogoCloud} from '@blukavantui/community/logo-cloud';
import '@blukavantui/community/logo-cloud.css';
export function mount(host:HTMLElement) {
const owned:{destroy():void}[]=[];
const keep=<T extends {destroy():void}>(c:T)=>{owned.push(c);return c;};
const status=document.createElement("p");status.setAttribute("role","status");
keep(createLogoCloud(host,{
"Title": "Trusted by ambitious teams",
"Columns": 5,
"LogoHeight": 40,
"Items": [
{
"Key": "0",
"Name": "forma",
"ImageUrl": "",
"DarkImageUrl": "",
"Url": ""
},
{
"Key": "1",
"Name": "Northstar",
"ImageUrl": "",
"DarkImageUrl": "",
"Url": ""
},
{
"Key": "2",
"Name": "Altitude",
"ImageUrl": "",
"DarkImageUrl": "",
"Url": ""
},
{
"Key": "3",
"Name": "Evergreen",
"ImageUrl": "",
"DarkImageUrl": "",
"Url": ""
},
{
"Key": "4",
"Name": "Studio 08",
"ImageUrl": "",
"DarkImageUrl": "",
"Url": ""
}
]
},{Error: (message) => {status.textContent="Error: "+String(message);}}));host.append(status);
return {destroy(){owned.reverse().forEach(c=>c.destroy());status.remove();}};
}
const instance = mount(document.getElementById('example')!)
// When this page or framework component is removed:
// instance.destroy()