com.vaadin.flow.component.html.

Class Emphasis

All Implemented Interfaces:

AttachNotifier, ClickNotifier<Emphasis>, DetachNotifier, HasComponents, HasElement, HasEnabled, HasSize, HasStyle, HasText, Serializable

@Tag("em") public class Emphasis extends HtmlContainer implements ClickNotifier<Emphasis>

Component representing a <em> element.

Since:

1.0

Author:

Vaadin Ltd

See Also:

  • Constructor Details

    • Emphasis

      public Emphasis()

      Creates a new empty emphasis.

    • Emphasis

      public Emphasis(Component... components)

      Creates a new emphasis with the given child components.

      Parameters:

      components - the child components

    • Emphasis

      public Emphasis(String text)

      Creates a new emphasis with the given text.

      Parameters:

      text - the text