feat(blocks): add pricing block with components and type definitions #6378
+4,918
−11,774
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of Changes:
Why is this change necessary?
This change introduces a structured pricing block to the project, designed to display pricing information clearly and effectively. By including fully typed components, this ensures the block is reusable and accessible, making it a key component for any pricing-related UI.
How was this change implemented?
PricingCard
: Displays individual pricing plans with clear call-to-action buttons.PriceLabel
: Displays the price with relevant formatting (currency symbols, separators, etc.).PriceToggleButton
: Allows users to toggle between different price tiers (e.g., regular vs. discounted).Accessibility:
Type Safety:
Testing:
Screenshots / Previews:
Known Issues or Future Improvements:
Checklist:
Conclusion:
This PR introduces a fully accessible, typed pricing block to
ui.shadcn.com
. The block is reusable, interactive, and improves the display of pricing information across the platform. The components have been built with accessibility in mind and are ready to be integrated into the wider UI system.Looking forward to your feedback and hoping this addition enhances the project's quality!