Loading...
See the new new component docs (under construction) for V19 and TypeScript samples.

Radio Button

Installation instructions for Java

Using in a Starter project

The simplest way to start is to create a Vaadin project using a starter. The starter projects contain all the free Vaadin component dependencies.

See examples of how to use the component.

Using in a Maven project

Include all the free Vaadin components with a single dependency

If you already have a project, first make sure you have the vaadin-bom imported.

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.vaadin</groupId>
      <artifactId>vaadin-bom</artifactId>
      <version>21.0.1</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>

All the free Vaadin components are available with a single dependency. You can leave out the version as vaadin-bom specifies it.

<dependency>
  <groupId>com.vaadin</groupId>
  <artifactId>vaadin-core</artifactId>
</dependency>

Alternatively you can include only the specific component dependency

Alternatively, you can include the component as a separate dependency. Make sure you have imported vaadin-bom as described above.

Include the component dependency. You can leave out the version as vaadin-bom specifies it.

<dependencies>
  <dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-radio-button-flow</artifactId>
  </dependency>
</dependencies>

Using in a client-side project

To use the Web Component in a client-side project, see npm instructions.