package com.example.components;

import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.html.H3;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;

public class Card extends VerticalLayout {

    public Card(String title, Component content) {
        H3 heading = new H3(title);
        heading.addClassName("dialect-card__title");

        add(heading, content);

        addClassName("dialect-card");
        setWidthFull();
        setPadding(false);
        setSpacing(false);
    }
}
