Skip to content

Feature #1331: Add RatingInput component - #1340

Merged
gvreddy04 merged 1 commit into
mainfrom
feature/1331-rating-input-component
Nov 3, 2026
Merged

gvreddy04 merged 1 commit into
mainfrom
feature/1331-rating-input-component

Conversation

@gvreddy04

Copy link
Copy Markdown
Contributor

Add a RatingInput form component (int, int?, decimal, decimal?) for selecting or displaying a score with Bootstrap Icons. Built with native radio inputs and CSS only; no JavaScript interop.

  • Value/ValueChanged/ValueExpression with EditForm validation styling
  • MaxValue, ReadOnly, Disabled, AllowClear, opt-in AllowHalf (decimal only)
  • Read-only fractional display rounded to the nearest half
  • FilledIconName/EmptyIconName/HalfIconName, RatingInputColor (default Warning), RatingInputSize (Default/Small/Large)
  • CSS-only hover preview, disabled for touch, read-only and disabled
  • radiogroup/radio semantics, aria-readonly/aria-disabled, exact-value description, localizable ItemLabelFormat ("{0} of {1}")
  • Arrow keys with wrap and RTL mirroring; single tab stop
  • Throws for unsupported TValue, AllowHalf on integers, MaxValue < 1
  • Demo page (10 scenarios), docs-host page, screenshot, navigation and Index entries, docs/docs/04-forms/rating-input.mdx

Add a RatingInput<TValue> form component (int, int?, decimal, decimal?)
for selecting or displaying a score with Bootstrap Icons. Built with
native radio inputs and CSS only; no JavaScript interop.

- Value/ValueChanged/ValueExpression with EditForm validation styling
- MaxValue, ReadOnly, Disabled, AllowClear, opt-in AllowHalf (decimal only)
- Read-only fractional display rounded to the nearest half
- FilledIconName/EmptyIconName/HalfIconName, RatingInputColor (default
  Warning), RatingInputSize (Default/Small/Large)
- CSS-only hover preview, disabled for touch, read-only and disabled
- radiogroup/radio semantics, aria-readonly/aria-disabled, exact-value
  description, localizable ItemLabelFormat ("{0} of {1}")
- Arrow keys with wrap and RTL mirroring; single tab stop
- Throws for unsupported TValue, AllowHalf on integers, MaxValue < 1
- Demo page (10 scenarios), docs-host page, screenshot, navigation and
  Index entries, docs/docs/04-forms/rating-input.mdx
@gvreddy04 gvreddy04 added this to the 4.1.0 milestone Nov 3, 2026
@gvreddy04 gvreddy04 self-assigned this Nov 3, 2026
@gvreddy04
gvreddy04 merged commit 748946e into main Nov 3, 2026
1 of 3 checks passed
@gvreddy04
gvreddy04 deleted the feature/1331-rating-input-component branch November 3, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant