@stenajs-webui/elements 23.13.1 → 23.13.2
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/components/ui/button-links/common/BaseButtonLink.d.ts +4 -0
- package/dist/index.es.js +1475 -1473
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -2,5 +2,9 @@ import * as React from "react";
|
|
|
2
2
|
import { AnchorElementProps } from "@stenajs-webui/core";
|
|
3
3
|
import { CommonButtonProps } from "../../buttons/common/ButtonCommon";
|
|
4
4
|
export interface BaseButtonLinkProps extends CommonButtonProps, AnchorElementProps {
|
|
5
|
+
/** Merges styles onto the child element instead of rendering an <a>.
|
|
6
|
+
* Use this to integrate with router link components (e.g. React Router, Next.js).
|
|
7
|
+
* When using asChild, content props (label, leftIcon, etc.) are ignored — the child controls its own content. */
|
|
8
|
+
asChild?: boolean;
|
|
5
9
|
}
|
|
6
10
|
export declare const BaseButtonLink: React.ForwardRefExoticComponent<BaseButtonLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|