Merge pull request #30334 from birdhb/export-button-link-canon
adding export for Button Link in Canon
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/canon': patch
|
||||
---
|
||||
|
||||
adding export for ButtonLink so it's importable
|
||||
@@ -18,6 +18,7 @@ import { FocusEvent as FocusEvent_2 } from 'react';
|
||||
import { ForwardRefExoticComponent } from 'react';
|
||||
import { HTMLAttributes } from 'react';
|
||||
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
||||
import { LinkProps as LinkProps_2 } from 'react-aria-components';
|
||||
import { Menu as Menu_2 } from '@base-ui-components/react/menu';
|
||||
import { ReactElement } from 'react';
|
||||
import { ReactNode } from 'react';
|
||||
@@ -174,6 +175,28 @@ export interface ButtonIconProps extends ButtonProps_2 {
|
||||
| Partial<Record<Breakpoint_2, 'primary' | 'secondary'>>;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export const ButtonLink: ForwardRefExoticComponent<
|
||||
ButtonLinkProps & RefAttributes<HTMLAnchorElement>
|
||||
>;
|
||||
|
||||
// @public
|
||||
export interface ButtonLinkProps extends LinkProps_2 {
|
||||
// (undocumented)
|
||||
children?: ReactNode;
|
||||
// (undocumented)
|
||||
iconEnd?: ReactElement;
|
||||
// (undocumented)
|
||||
iconStart?: ReactElement;
|
||||
// (undocumented)
|
||||
size?: 'small' | 'medium' | Partial<Record<Breakpoint_2, 'small' | 'medium'>>;
|
||||
// (undocumented)
|
||||
variant?:
|
||||
| 'primary'
|
||||
| 'secondary'
|
||||
| Partial<Record<Breakpoint_2, 'primary' | 'secondary'>>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ButtonProps extends ButtonProps_2 {
|
||||
// (undocumented)
|
||||
|
||||
@@ -39,6 +39,7 @@ export * from './components/DataTable';
|
||||
export * from './components/FieldLabel';
|
||||
export * from './components/Icon';
|
||||
export * from './components/ButtonIcon';
|
||||
export * from './components/ButtonLink';
|
||||
export * from './components/Checkbox';
|
||||
export * from './components/Table';
|
||||
export * from './components/Tabs';
|
||||
|
||||
Reference in New Issue
Block a user