# Install

## Maven

```xml
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-details-flow</artifactId>
</dependency>
<dependency>
    <groupId>de.mate_ds</groupId>
    <artifactId>mate-component-addons-flow</artifactId>
</dependency>
```

# Import

```java
import com.vaadin.flow.component.details.Details;
import de.mate_ds.flow.component.componentaddons.DetailsSummary;
import de.mate_ds.flow.component.componentaddons.DetailsSummaryVariant;
```

# Variants

## Mate summary

```java
DetailsSummary summary = new DetailsSummary();
summary.setTitleText("Title");
Details details = DetailsSummary.createDetails(summary);
details.add(new Span("Inhaltsbereich in dem beliebiger Inhalt stehen kann"));
```

## Object header

```java
DetailsSummary summary = new DetailsSummary();
summary.setTitleText("Title");
summary.getTitle().add(new Badge("Information"), new Badge("Information"));
summary.getAction().add(new Button(new Icon(MaterialSymbol.SymbolDelete)), new Button(new Icon(MaterialSymbol.SymbolContentCopy)));
summary.addThemeVariants(DetailsSummaryVariant.OBJECT_HEADER);
Details details = DetailsSummary.createDetails(summary);
details.add(new Span("Inhaltsbereich in dem beliebiger Inhalt stehen kann"));
```