Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio component #113

Open
leonid opened this issue Sep 11, 2024 · 0 comments
Open

Radio component #113

leonid opened this issue Sep 11, 2024 · 0 comments
Assignees
Milestone

Comments

@leonid
Copy link
Member

leonid commented Sep 11, 2024

A Radio component is a UI element that allows users to select one option from a set of mutually exclusive options. Here are the key features a Radio component should have:

  1. Single Selection: Ensure only one option can be selected at a time within a group.
  2. Customizable Labels: Display customizable text labels next to each radio button.
  3. Styling: Support for custom styles and CSS classes to match the application's design.
  4. Disabled State: Option to disable individual radio buttons or the entire group.
  5. Accessibility: Ensure the component is accessible with proper ARIA attributes and keyboard support.
  6. Events: Emit events for user interactions such as change or select.
  7. Group Support: Ability to group multiple radio buttons together.
  8. Icons: Option to include icons alongside the radio button labels.
  9. Validation: Support for form validation to ensure a selection is made.
  10. Responsive Design: Adaptable to different screen sizes and orientations.
  11. Inline and Block Layouts: Support for both inline and block layouts.
  12. Customizable Sizes: Support for different sizes (e.g., small, medium, large) to fit various UI designs.
  13. Tooltips: Option to include tooltips for additional information.
  14. Animations: Support for animations when selecting or deselecting options.
  15. Theming: Support for different themes to match the application's design system.

These features ensure that the Radio component is versatile, user-friendly, and accessible.

To be implemented

  • Vue component with basic logic
  • Styles and extension points as css properties
  • Vitepress documentation: feature description, examples and api documentation
  • Unit tests for component and its composition
  • Storybook demos and documentation
@leonid leonid self-assigned this Sep 11, 2024
@leonid leonid added this to the Alpha release milestone Sep 11, 2024
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

No branches or pull requests

1 participant