Fix types

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2025-06-17 14:37:57 +01:00
parent 4c6d891e5a
commit 0a5d96e7bb
2 changed files with 11 additions and 4 deletions
+5 -2
View File
@@ -166,8 +166,11 @@ export type ButtonAnchorProps = ButtonCommonProps &
// @public (undocumented)
export type ButtonCommonProps = {
size?: 'small' | 'medium';
variant?: 'primary' | 'secondary';
size?: 'small' | 'medium' | Partial<Record<Breakpoint_2, 'small' | 'medium'>>;
variant?:
| 'primary'
| 'secondary'
| Partial<Record<Breakpoint_2, 'primary' | 'secondary'>>;
iconStart?: ReactElement;
iconEnd?: ReactElement;
className?: string;
@@ -14,6 +14,7 @@
* limitations under the License.
*/
import { Breakpoint } from '@backstage/canon';
import {
ReactElement,
AnchorHTMLAttributes,
@@ -22,8 +23,11 @@ import {
/** @public */
export type ButtonCommonProps = {
size?: 'small' | 'medium';
variant?: 'primary' | 'secondary';
size?: 'small' | 'medium' | Partial<Record<Breakpoint, 'small' | 'medium'>>;
variant?:
| 'primary'
| 'secondary'
| Partial<Record<Breakpoint, 'primary' | 'secondary'>>;
iconStart?: ReactElement;
iconEnd?: ReactElement;
className?: string;