Open angeloashmore opened 8 months ago
Path | Size |
---|---|
./dist/index.cjs | 8.54 KB (+6.47% 🔺) |
./dist/index.js | 6.4 KB (+5.88% 🔺) |
./dist/react-server.cjs | 7.71 KB (+6.81% 🔺) |
./dist/react-server.js | 5.89 KB (+5.72% 🔺) |
Merging #196 (020993b) into master (ca3f851) will increase coverage by
0.05%
. The diff coverage is100.00%
.
:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@ Coverage Diff @@
## master #196 +/- ##
==========================================
+ Coverage 99.68% 99.74% +0.05%
==========================================
Files 20 20
Lines 2561 2746 +185
Branches 95 118 +23
==========================================
+ Hits 2553 2739 +186
+ Misses 8 7 -1
Files Changed | Coverage Δ | |
---|---|---|
src/react-server/PrismicRichText.tsx | 99.78% <100.00%> (+0.49%) |
:arrow_up: |
Types of changes
Description
This PR allows
<PrismicRichText>
to be configured with aclassName
shorthand for individual components. It saves developer keystrokes by removing boilerplate in the common case of applying a classname to the default block element.The above
components
value is equivalent to the following:The shorthand and existing inline component syntax can coincide in the
components
prop.className
is the only supported shorthand prop. Other props, likedata-
attributes, are not supported. Continue to use the inline component syntax for component definitions that require more than justclassName
customization.Checklist:
🐻