import { createTrait } from '@meta-ui/core';
import { Type } from '@sinclair/typebox';
const StyleTrait = ({ styleSlot, style, }) => {
    return {
        props: {
            customStyle: {
                [styleSlot]: style,
            },
        },
    };
};
const PropsSchema = Type.Object({
    styleSlot: Type.String(),
    style: Type.String(),
});
export default Object.assign(Object.assign({}, createTrait({
    version: 'core/v1',
    metadata: {
        name: 'style',
        description: 'add style to component',
    },
    spec: {
        properties: PropsSchema,
        state: {},
        methods: [],
    },
})), { impl: StyleTrait });
//# sourceMappingURL=style.js.map