export const backtopProps = {
  /**
   * @zh_CN bottom distance.
   */
  bottom: {
    default: 40,
    type: Number,
  },
  /**
   * @zh_CN scroll-to-bottom button label.
   */
  bottomLabel: {
    default: 'Scroll to bottom',
    type: String,
  },
  /**
   * @zh_CN whether to show top and bottom controls as a group.
   */
  isGroup: {
    default: false,
    type: Boolean,
  },
  /**
   * @zh_CN right distance.
   */
  right: {
    default: 40,
    type: Number,
  },
  /**
   * @zh_CN the target to trigger scroll.
   */
  target: {
    default: '',
    type: String,
  },
  /**
   * @zh_CN back-to-top button label.
   */
  topLabel: {
    default: 'Back to top',
    type: String,
  },
  /**
   * @zh_CN the button will not show until the scroll height reaches this value.
   */
  visibilityHeight: {
    default: 200,
    type: Number,
  },
} as const;

export interface BacktopProps {
  bottom?: number;
  bottomLabel?: string;
  isGroup?: boolean;
  right?: number;
  target?: string;
  topLabel?: string;
  visibilityHeight?: number;
}
