@lucsoft/webgen
Version:
Collection of lucsofts Components
11 lines (10 loc) • 365 B
JavaScript
import '../../css/cards.note.webgen.static.css';
import { span } from "../Components";
export const noteCard = (options) => ({
getSize: () => ({ height: options.height, width: options.width }),
draw: (card) => {
card.classList.add('note');
card.append(span(options.icon, 'icon'), span(options.title, 'text'));
return card;
}
});