<script>
import BaseComponent from '@primevue/core/basecomponent';
import InputColorInputStyle from 'primevue/inputcolorinput/style';
import InputText from 'primevue/inputtext';

export default {
    name: 'BaseInputColorInput',
    extends: BaseComponent,
    props: {
        channel: {
            type: String,
            default: 'hex'
        },
        as: {
            type: [String, Object, Function],
            default: () => InputText
        },
        asChild: {
            type: Boolean,
            default: false
        }
    },
    style: InputColorInputStyle,
    provide() {
        return {
            $pcInputColorInput: this,
            $parentInstance: this
        };
    }
};
</script>
