Source

admin-bro-design-system/src/atoms/button/button-props.ts

import { SpaceProps, TypographyProps } from 'styled-system'
import { VariantType } from '../../theme'

import { ColorProps } from '../../utils/color-props'

/**
 * @load ./button-props.doc.md
 * @memberof Button
 * @alias ButtonProps
 * @property {string} [...] Other props from {@link ColorProps}, {@link SpaceProps}
 *                          and {@link TypographyProps}
 */
export type ButtonProps = ColorProps & SpaceProps & TypographyProps & {
  /**
   * Button color variant
   */
  variant?: VariantType | 'text';
  /**
   * Button size variant
   */
  size?: 'sm' | 'lg' | 'icon' | 'default' | 'md';
  /**
   * If button should be rounded
   */
  rounded?: boolean;

  /**
   * You can either pass an label prop - or use react Children.
   */
  label?: string
}
SoftwareBrothers

Proudly built and maintained by SoftwareBrothers

Software House with a passion for both JavaScript and TypeScript.

See what we do See what we believe in

Proudly built and maintained by

SoftwareBrothers