Abp ui

From burakdmir/abp-skills · View interactive version

Abp ui is an AI agent skill from the GitHub repository burakdmir/abp-skills. ABP Framework v10.x (10.4–10.6) UI: MVC/Razor Pages (AbpPageModel), Blazor (AbpComponentBase), Angular, React (--modern), theming (LeptonX), menu contributor, dynamic proxy. Use when developing frontend, UI, pages, or components in ABP.

How to use this skill

Skill file

ABP Framework — UI & Frontend

ABP Framework v10.x (10.4–10.6) UI framework integrations. MVC, Blazor, Angular, React, theming.

Trigger

UI Frameworks

| Framework | Type | Note |

|---|---|---|

| MVC/Razor Pages | Server-side | Default |

| Blazor Web App | Server-side (.NET 10) | Modern Blazor |

| Blazor WASM | Client-side | SPA |

| Angular | Client-side | TypeScript |

| React | Client-side | Modern template |

MVC Controller

[Area("App")]
[Route("api/app/book")]
public class BookController : AbpController
{
    private readonly IBookAppService _bookAppService;
    public BookController(IBookAppService bookAppService) => _bookAppService = bookAppService;
    
    [HttpGet]
    public Task<PagedResultDto<BookDto>> GetListAsync(PagedAndSortedResultRequestDto input) =>
        _bookAppService.GetListAsync(input);
}

Razor Page

public class IndexModel : AbpPageModel
{
    public List<BookDto> Books { get; set; }
    public IndexModel(IBookAppService bookAppService) => _bookAppService = bookAppService;
    
    public async Task OnGetAsync()
    {
        var result = await _bookAppService.GetListAsync(new());
        Books = result.Items;
    }
}

Blazor Component

@page "/books"
@inject IBookAppService BookAppService

@if (books == null) { <p>Loading...</p> }
else {
    @foreach (var book in books.Items)
    {
        <div>@book.Name - @book.Price</div>
    }
}

@code {
    private PagedResultDto<BookDto> books;
    protected override async Task OnInitializedAsync() =>
        books = await BookAppService.GetListAsync(new());
}

React (Modern)

abp new Acme.BookStore --template app --modern
abp new Acme.BookStore --modern --shadcn-theme blue

Theme: slate, pink, blue, turquoise, orange, purple

Theming

abp new Acme.BookStore --theme leptonx-lite
abp new Acme.BookStore --theme basic

Permission

public static class BookStorePermissions
{
    public const string GroupName = "BookStore";
    public const string Books = GroupName + ".Books";
    public const string BooksCreate = Books + ".Create";
}

Best Practices

  1. MVC/Razor Pages as the default choice
  2. Use Blazor Web App (.NET 10)
  3. Use the --modern flag for React
  4. Define permissions in a constant class

v10.5+

v10.6+

Related

API · Authorization · Localization · Framework · Docs: https://abp.io/docs/latest/framework/ui

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.