<script>
import BaseComponent from 'primevue/basecomponent';
import TextStyle from 'primevue/text/style';
import { useDeclarations } from '../props/style';
import SPACING from '../props/style/spacing.js';

export const styleData = useDeclarations(SPACING);

export default {
    name: 'BaseText',
    extends: BaseComponent,
    props: {
        ...styleData.props,
        as: {
            type: String,
            default: 'p'
        }
    },
    style: TextStyle,
    provide() {
        return {
            $parentInstance: this
        };
    }
};
</script>
