mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 17:12:29 +08:00
Create ComponentSize type and replace ButtonSize with it (#23059)
This commit is contained in:
@ -2,11 +2,12 @@ import React, { AnchorHTMLAttributes, ButtonHTMLAttributes, useContext } from 'r
|
||||
import { ThemeContext } from '../../themes';
|
||||
import { getButtonStyles } from './styles';
|
||||
import { ButtonContent } from './ButtonContent';
|
||||
import { ButtonSize, ButtonStyles, ButtonVariant } from './types';
|
||||
import { ComponentSize } from '../../types/size';
|
||||
import { ButtonStyles, ButtonVariant } from './types';
|
||||
import { cx } from 'emotion';
|
||||
|
||||
type CommonProps = {
|
||||
size?: ButtonSize;
|
||||
size?: ComponentSize;
|
||||
variant?: ButtonVariant;
|
||||
/**
|
||||
* icon prop is a temporary solution. It accepts legacy icon class names for the icon to be rendered.
|
||||
|
Reference in New Issue
Block a user