Add the Bit.Borm.BlazorUI package to render Borm forms with BlazorUI inputs

Đang mở
#15,542 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@msynk đang làm issue này rồi.

Từ ngày 29/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

area / BlazorUI area / borm

Borm renders every field with plain, dependency-free HTML inputs, which look out of place in an app built with
BlazorUI. Add an opt-in Bit.Borm.BlazorUI package that plugs BlazorUI inputs into Borm through the existing
IBormFieldRendererRegistry, so the core package keeps no dependency on BlazorUI.

  • Renderers built on BlazorUI inputs: Text, Email, Password, Url and Tel on BitTextField; Search on BitSearchBox;
    TextArea on a multiline BitTextField; Integer and Number on BitNumberField; Range on BitSlider; Checkbox on
    BitCheckbox (or BitToggle); Select, MultiSelect and Combobox on BitDropdown; Radio on BitChoiceGroup; Tags
    on BitTagsInput; Date and DateTime on BitDatePicker; Time on BitTimePicker; Color on BitColorPicker; File on
    BitFileInput. Static, Signature, Month, Week and Markdown keep the built-in renderers.
  • One call to opt in (registry.UseBlazorUI() / services.AddBitBormBlazorUIServices()), and each mapping can still be
    overridden one field type at a time.
  • The renderers keep what the built-in ones do: the label, help and messages stay with BormFieldView (no duplicate
    BlazorUI label; aria-labelledby / aria-describedby wired instead), update-on-input vs. update-on-blur, masks,
    prefix/suffix, the character counter, disabled/read-only/required state, async options and the posted name of a
    read-only field.
  • One source of validation: Borm stays the authority, and the EditContext that BitInputBase notifies does not
    validate a field twice.
  • Static rendering (HtmlRenderer, e-mails, PDFs) falls back to the built-in renderers where a BlazorUI input needs JS.
  • BitButton-based submit / next / back buttons for BormView.Actions and the steps view.
  • A theme-bridge stylesheet that maps the --bit-borm-* variables onto BlazorUI's --bit-clr-* theme, usable on its
    own so the built-in renderers follow the BlazorUI theme (light, dark and custom) too.
Ngôn ngữ chính
C#
Star
1.4k
Fork
264
Merge trung bình
5 giờ 25 phút
Pull request đã merge (30 ngày)
447

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bitfoundation/bitplatform

Tất cả issue của bitfoundation/bitplatform

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.