Skip to content

Add marginless prop to Price component#703

Open
FelixLgr wants to merge 1 commit into
mainfrom
feature/price-marginless
Open

Add marginless prop to Price component#703
FelixLgr wants to merge 1 commit into
mainfrom
feature/price-marginless

Conversation

@FelixLgr
Copy link
Copy Markdown
Collaborator

@FelixLgr FelixLgr commented Feb 5, 2026

Summary by CodeRabbit

  • New Features
    • Added a marginless option to the Price component that allows removal of margin from the price container.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 5, 2026

📝 Walkthrough

Walkthrough

A new optional marginless boolean prop is added to the Price component, allowing consumers to conditionally remove margin from the price container through CSS class application.

Changes

Cohort / File(s) Summary
Price Component Props
packages/react/components/price/PriceProps.ts, packages/react/components/price/Price.tsx
Added optional marginless boolean prop to the Price component interface and implementation with conditional CSS class binding via is('marginless').

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • air-one-x

Poem

🐰 A margin goes missing, no space left to roam,
The Price stands so boldly, now closer to home,
A boolean whisper, marginless true,
Tight and compact, a cleaner view! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: adding a marginless prop to the Price component, which matches the file modifications across Price.tsx and PriceProps.ts.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/price-marginless

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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