ConditionalWrapper
readyNot reviewed for a11y
This page may be removed. Primer plans to move all Rails component documentation to Lookbook.
Description
Conditionally renders a Primer::BaseComponent
around the given content. If the given condition
is true, a Primer::BaseComponent
will render around the content. If the condition is false, only
the content is rendered.
Arguments
Name | Required | Description |
---|---|---|
condition | Boolean Whether or not to wrap the content in a | |
base_component_arguments | Hash The arguments to pass to |