import { createTrait } from '@meta-ui/core';
import { Type } from '@sinclair/typebox';
const useHiddenTrait = ({ hidden }) => {
    return {
        props: {
            customStyle: {
                content: hidden ? 'display: none' : '',
            },
        },
    };
};
const PropsSchema = Type.Object({
    hidden: Type.Boolean(),
});
export default Object.assign(Object.assign({}, createTrait({
    version: 'core/v1',
    metadata: {
        name: 'hidden',
        description: 'render component with condition',
    },
    spec: {
        properties: PropsSchema,
        state: {},
        methods: [],
    },
})), { impl: useHiddenTrait });
//# sourceMappingURL=hidden.js.map