Skip to content

Conversation

@mayan-000
Copy link
Collaborator

@mayan-000 mayan-000 commented Nov 28, 2025

This pull request introduces three new UI components—Label, RadioGroup, Skeleton, and Separator—to the frappe-ui-react package, each built on top of Radix UI primitives. It also adds their respective type definitions and comprehensive Storybook stories for documentation and testing. Additionally, the required Radix UI dependencies are added to the package manifest. These changes enhance the design system by providing configurable, accessible, and themable form and layout primitives.

New Component Additions

  • Added a configurable Label component (src/components/label/index.tsx) supporting size, weight, variant, disabled, required, and optional props, with Radix UI integration.
  • Added a flexible RadioGroup component (src/components/radiogroup/index.tsx) with support for sizes, themes, variants, orientation, option descriptions, and disabled states, built on Radix UI.
  • Added a customizable Separator component (src/components/separator/index.tsx) supporting size, color, variant, and orientation, leveraging Radix UI.

Type Definitions

  • Defined prop types for Label, RadioGroup, Skeleton, and Separator components in their respective types.ts files for type safety and IntelliSense.

Storybook Documentation

  • Added Storybook stories for Label and RadioGroup components to demonstrate usage, variants, and states, aiding in visual documentation and testing.

Dependency Management

  • Updated package.json to include new Radix UI dependencies required for the added components: @radix-ui/react-label, @radix-ui/react-radio-group, and @radix-ui/react-separator.

@mayan-000 mayan-000 requested a review from mohdsayed November 28, 2025 07:24
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.

2 participants