You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Use `IncludeFragment` to load HTML elements from the server.\nAdd additional usage considerations or best practices that may aid the user to use the component correctly.",
4685
+
"accessibility_docs": "Add any accessibility considerations",
"description": "`Layout` provides foundational patterns for responsive pages.\n`Layout` can be used for simple two-column pages, or it can be nested to provide flexible 3-column experiences.\n On smaller screens, `Layout` uses vertically stacked rows to display content.\n\n`Layout` flows as both column, when there's enough horizontal space to render both `Main` and `Sidebar`side-by-side (on a desktop of tablet device, per instance);\nor it flows as a row, when `Main` and `Sidebar` are stacked vertically (e.g. on a mobile device).\n`Layout` should always work in any screen size.",
"description": "Conditionally renders a `Primer::BaseComponent` around the given content. If the given condition\nis true, a `Primer::BaseComponent` will render around the content. If the condition is false, only\nthe content is rendered.",
17294
+
"description": "Conditionally renders a component around the given content. If the given condition\nis true, the component will render around the content. If the condition is false, only\nthe content is rendered.",
17224
17295
"accessibility_docs": null,
17225
17296
"is_form_component": false,
17226
17297
"is_published": true,
@@ -17236,13 +17307,19 @@
17236
17307
"name": "condition",
17237
17308
"type": "Boolean",
17238
17309
"default": "N/A",
17239
-
"description": "Whether or not to wrap the content in a `Primer::BaseComponent`."
17310
+
"description": "Whether or not to wrap the content in a component."
17311
+
},
17312
+
{
17313
+
"name": "component",
17314
+
"type": "Class",
17315
+
"default": "`Primer::BaseComponent`",
17316
+
"description": "The component class to use as a wrapper, defaults to `Primer::BaseComponent`"
17240
17317
},
17241
17318
{
17242
17319
"name": "base_component_arguments",
17243
17320
"type": "Hash",
17244
17321
"default": "N/A",
17245
-
"description": "The arguments to pass to `Primer::BaseComponent`."
17322
+
"description": "The arguments to pass to the component."
0 commit comments