diff --git a/ai/mcp-server.md b/ai/mcp-server.md index a00dd146e..dcb002527 100644 --- a/ai/mcp-server.md +++ b/ai/mcp-server.md @@ -161,7 +161,7 @@ To call the Telerik MCP server without the need to type `Telerik` or `#telerikBl ### Sample Prompts -The following list describes how your prompts may look like: +The following list describes how your prompts may look like. Check the [Prompt Library](slug:ai-prompt-library) for more examples. * "Telerik Generate a Blazor Grid with sorting and paging enabled. Bind the Grid to a Person model and provide dummy data." * "Telerik Generate a ComboBox for Blazor that shows a list of products. Create a Product class and generate sample data." diff --git a/ai/prompt-library.md b/ai/prompt-library.md new file mode 100644 index 000000000..add631dcd --- /dev/null +++ b/ai/prompt-library.md @@ -0,0 +1,211 @@ +--- +title: Prompt Library +page_title: Telerik Blazor Prompt Library +description: Get familiar with some example prompts that show how to use the Telerik AI Coding Assistant for better developer productivity. +slug: ai-prompt-library +tags: telerik,blazor,ai +published: True +position: 30 +--- + +# Telerik Blazor Prompt Library + +This article provides a list of sample prompts for use with the [Telerik Blazor MCP Server](slug:ai-mcp-server). They can help you get a better idea what the Telerik AI Coding Assistant can do and how to compose your prompts. This collection is not exhaustive and you can prompt the Telerik AI Coding Assistant about other scenarios and components as well. + +## How to Use the Prompts + +All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-server). The [`#telerikBlazorAssistant` handle](slug:ai-mcp-server#usage) assumes that this is the server name you have [entered in the `mcp.json` file during installation](slug:ai-mcp-server#installation). + +1. Browse the prompt library to find a prompt that suits your needs. +2. Copy the prompt text including the `#telerikBlazorAssistant` handle. +3. (optional) Customize the prompt as needed for your specific use case. Make sure the changes comply with the [intended use](slug:ai-overview#intended-use) and the [recommendations](slug:ai-overview#recommendations) for the AI Coding Assistant. +4. Run the prompt against the MCP server. + +>warning Always double-check the code and solutions proposed by any AI-powered tool before applying them to your project. + +## Grid + +
+ +````TEXT.skip-repl +#telerikBlazorAssistant Create a basic Grid component that displays employee data with columns for ID, Name, Position, and Salary. Include sorting and pagination functionality. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Implement a Grid with enabled filtering and show how to set up different filter types for text, numeric, and date columns. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Set up a Grid that loads data from a REST API endpoint. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Set up a Grid with virtual scrolling to handle large datasets efficiently +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create a Grid having Edit button on each row, and conditional formatting based on cell values. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Implement Grid with enabled grouping and expand/collapse functionality for the groups. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Set up a Grid with еnabled multiple selection. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Set up a Grid with еnabled checkbox selection. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create an editable Grid that includes validation for different data types. +```` + +
+ +## Scheduler + +
+ +````TEXT.skip-repl +#telerikBlazorAssistant Create a Scheduler component with month, week, and day views. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create a Scheduler with sample event data and enabled basic event creation, editing, and deletion functionality. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create a resource-based Scheduler with sample data grouped by Name of the event owner. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create a Scheduler that allows users to toggle between different views and displays appointments. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create a Scheduler that allows to create weekly repeating events. +```` + +
+ +## Chart + +
+ +````TEXT.skip-repl +#telerikBlazorAssistant Build a column chart that shows quarterly sales by region. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Build a column chart that shows quarterly sales by region with drill-down functionality to show monthly data when clicking on a quarter. +```` + +
+ +## Form + +
+ +````TEXT.skip-repl +#telerikBlazorAssistant How to create a form with three TextBox fields. +```` + +````TEXT.skip-repl + #telerikBlazorAssistant Generate a Form with required field validation for email and password inputs. +```` + +
+ +## Upload + +
+ +````TEXT.skip-repl +#telerikBlazorAssistant Create a simple Upload component allowing chunk file upload. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create an Upload component allowing single file upload to a predefined saving location. +```` + +
+ +## DropDownList + +
+ +````TEXT.skip-repl +#telerikBlazorAssistant Create two cascading DropDownLists where the second list depends on the first selection. Use Categories and Products data with a simple relationship. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create a DropDownList with countries data and enabled filtering. +```` + +
+ +## DatePicker + +
+ +````TEXT.skip-repl +#telerikBlazorAssistant Create a DatePicker that disables weekends. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create two DatePickers for "From" and "To" date selection where the "To" picker's min date updates based on "From" selection. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Render a DatePicker with a default selected date. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Configure the DatePicker to show week numbers in its calendar popup. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Change the display format in the DatePicker so dates show as 'MM/dd/yyyy'. +```` + +
+ +## Calendar + +
+ +````TEXT.skip-repl +#telerikBlazorAssistant Create a Calendar component in which all past days are disabled. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create a Calendar component in which all weekends are disabled. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create a Calendar that shows the past 5 years. +```` + +
+ +## MultiSelect + +
+ +````TEXT.skip-repl +#telerikBlazorAssistant Create a MultiSelect with an array of product objects and show the selected product names below the component. +```` + +````TEXT.skip-repl +#telerikBlazorAssistant Create a MultiSelect with checkboxes bound to a simple list of countries and show the selected count. +```` + +
+ +## See Also + +* [Telerik Blazor MCP Server](slug:ai-mcp-server) +* [Telerik Blazor extension for GitHub Copilot](slug:ai-copilot-extension)