albx / albx/bitblazor

[FEATURE] Add the Form Elements components

未关闭
#5 1 条评论 0 个 reaction 已指派 1 人 已被 @albx 认领 在 GitHub 查看
components enhancement
主要语言
HTML
星标
10
派生
4
平均合并
4 天
30 天内合并 PR
1

描述

Create a set of reusable Razor components for form elements, according to [Bootstrap Italia - Form Elements](https://italia.github.io/bootstrap-italia/docs/form/introduzione/). Components should include Input, Select, Checkbox, Radio, Switch, and support all documented variants and accessibility features.

### Requirements:
- Implement Razor components (e.g., BitInput.razor, BitSelect.razor, BitCheckbox.razor, BitRadio.razor, BitSwitch.razor) for each form element, following Bootstrap Italia styles.
- Support all input types (text, password, email, etc.), select options, checkbox/radio groups, and switches.
- Expose parameters for label, value, validation, and ARIA/accessibility attributes.
- Ensure accessibility best practices are followed.
- Add XML documentation for all public parameters.

### Acceptance Criteria:
- Components render valid Bootstrap Italia markup for each form element.
- All documented variants and features are supported via parameters.
- Components are unit tested for all major variants and use cases.
- Usage examples are provided in the documentation or a sample page.

### References:
- [Bootstrap Italia - Form Elements Documentation](https://italia.github.io/bootstrap-italia/docs/form/introduzione/)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。