Radzen Blazor Components

Blazor SmartPasteButton

The Blazor SmartPasteButton fills a form from whatever text is in the clipboard - an email, a signature, a document - by asking an AI model to extract the fields of the form model.

1. Copy some text with customer details

2. Fill the form from the clipboard

Console log

How it works Link to this section

Set Data to the form model. On click the button reads the clipboard, describes the public properties of the model (name, type, and any [Description] or [Display] attribute) to the IChatClient configured for IAIChatService, asks for a JSON object with those keys and assigns the values, converting dates, numbers, booleans and enums. Properties the text does not mention stay unchanged. Use Fields to restrict which properties are filled, Instructions to add rules such as the expected language, and Pasted to react when the model is filled. Call Paste(text) to fill the model from a string instead of the clipboard.

Reading the clipboard requires a user gesture and, in most browsers, the user's permission; the EmptyClipboard event fires when nothing could be read.

Frequently asked questions

How does the Smart Paste Button fill the form?

It reads the clipboard, describes the properties of the form model to the AI model, asks for a JSON object with those keys and assigns the converted values.

Which property types are supported?

Strings, numbers, booleans, dates (DateTime, DateOnly, TimeOnly, DateTimeOffset), enums and Guids, including their nullable variants.

Radzen Blazor Newsletter

Get an email when new components and releases ship.

We care about your data. Read our Privacy Policy.

All the tools in one place

Save Hours on Every Project

With Radzen Blazor subscription you get the full toolkit, including:

Dedicated support backed by proven expertise

Premium themes and theme editor

Ready-to-use UI blocks

Complete app templates

Visual design-time-experience

Radzen Blazor Studio

Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under MIT

On this page

Demos Configuration

Premium Themes

  • Material 3
  • Material 3 Dark
  • Material 3 Expressive
  • Material 3 Expressive Dark
  • Zen
  • Zen Dark
  • Fluent
  • Fluent Dark

Free Themes

  • Material
  • Material Dark
  • Standard
  • Standard Dark
  • Default
  • Dark
  • Humanistic
  • Humanistic Dark
  • Software
  • Software Dark
An error has occurred. This app may no longer respond until reloaded. Reload 🗙