import { buildProps, definePropType } from '@kankan/utils'
import type { ExtractPropTypes } from 'vue'
import type button from './button.vue'

export const buttonProps = buildProps({
    type: {
        type: String,
        default: 'normal',
    },
    color: {
        type: String,
    },
    width: {
        type: definePropType<number | string>([Number, String]),
    },
    icon: {
        type: String,
    },
})

export type ButtonProps = ExtractPropTypes<typeof buttonProps>

export type ButtonInstance = InstanceType<typeof button>
