-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #533 from chromaui/params_callout_adjustments
Feat: Adjust ParamsCallout component and documentation
- Loading branch information
Showing
4 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,30 @@ | ||
--- | ||
const { name } = Astro.props; | ||
const { name, integration } = Astro.props; | ||
--- | ||
|
||
<div class="callout"> | ||
ℹ️ The <code>chromatic.{name}</code> parameter can be set at story, component, | ||
and project levels. This enables you to set project wide defaults and override | ||
them for specific components and/or stories. <a | ||
href="/docs/config-with-story-params">Learn more »</a | ||
> | ||
{ | ||
integration === "storybook" ? ( | ||
<> | ||
ℹ️ The <code>chromatic.{name}</code> parameter can be set at story, | ||
component, and project levels. This enables you to set project wide | ||
defaults and override them for specific components and/or stories.{" "} | ||
<a href="/docs/config-with-story-params">Learn more »</a> | ||
</> | ||
) : integration === "playwright" ? ( | ||
<> | ||
ℹ️ The <code>{name}</code> configuration option can be set at the | ||
project level or the test level. This enables you to set project wide | ||
defaults and override them for specific tests.{" "} | ||
<a href="/docs/playwright/configure">Learn more »</a> | ||
</> | ||
) : integration === "cypress" ? ( | ||
<> | ||
ℹ️ The <code>{name}</code> configuration option can be set at the | ||
project level or the test level. This enables you to set project wide | ||
defaults and override them for specific tests.{" "} | ||
<a href="/docs/cypress/configure">Learn more »</a> | ||
</> | ||
) : null | ||
} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters