-
Notifications
You must be signed in to change notification settings - Fork 8
Feature: Add ButtonGroup, RadioButton, Tag, Spacer and Slider components based on Espresso by Frappe #107
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
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces five new UI components (ButtonGroup, RadioButton, Tag, Spacer, and Slider) based on the Espresso by Frappe design system, along with a refactored Divider component. The changes add comprehensive component libraries with Storybook stories for documentation and testing.
- Adds new reusable components with configurable props for size, variant, theme, and behavior
- Refactors the Divider component to support slot-based content rendering instead of action buttons
- Extends the Tooltip component with an
openprop for controlled visibility
Reviewed changes
Copilot reviewed 26 out of 26 changed files in this pull request and generated 19 comments.
Show a summary per file
| File | Description |
|---|---|
packages/frappe-ui-react/src/components/tooltip/types.ts |
Adds open prop to TooltipProps for controlled tooltip visibility |
packages/frappe-ui-react/src/components/tooltip/tooltip.tsx |
Implements controlled tooltip behavior using the open prop |
packages/frappe-ui-react/src/components/tag/* |
New Tag component with removable functionality and variant support |
packages/frappe-ui-react/src/components/spacer/* |
New Spacer component for flexible spacing in horizontal/vertical layouts |
packages/frappe-ui-react/src/components/slider/* |
New Slider component supporting single value and range selection with tooltips |
packages/frappe-ui-react/src/components/radioButton/* |
New RadioButton component with customizable options and disabled states |
packages/frappe-ui-react/src/components/buttonGroup/* |
New ButtonGroup component for grouping related buttons |
packages/frappe-ui-react/src/components/divider/* |
Refactored to use slot-based rendering pattern instead of action buttons |
packages/frappe-ui-react/src/components/index.ts |
Exports new components for public API |
Description
Adds new components based on Espresso by Frappe Figma design.
RadioButton.Demo.mp4
Tag.Demo.mp4
Slider.Demo.mp4
Relevant Technical Choices
Testing Instructions
Additional Information:
Screenshot/Screencast
Checklist
Fixes #