@bettercms-ai/ui 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/renderer.js CHANGED
@@ -585,6 +585,7 @@ function Button({
585
585
  fullWidth = false,
586
586
  arrow = false,
587
587
  icon: iconProp,
588
+ newTab = false,
588
589
  align = "left",
589
590
  className = "",
590
591
  "data-bcms-field": field,
@@ -618,6 +619,7 @@ function Button({
618
619
  "a",
619
620
  {
620
621
  href,
622
+ ...newTab === true ? { target: "_blank", rel: "noopener noreferrer" } : {},
621
623
  "data-bcms-field": field,
622
624
  "data-bcms-kind": kind,
623
625
  className: cn(baseStyles, variantStyles[buttonVariantOf(variant)], alignClass, sizeClass, fullClass, className),