UNPKG

@lowdefy/blocks-antd

Version:

Lowdefy Ant Design Blocks

116 lines (112 loc) 3.85 kB
/* Copyright 2020-2026 Lowdefy, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ export default { category: 'container', icons: [], valueType: null, slots: { content: 'Child blocks laid out by the Flex container.' }, cssKeys: { element: 'The Flex element.' }, properties: { type: 'object', additionalProperties: false, properties: { vertical: { type: 'boolean', default: false, description: 'Whether the main axis direction is vertical.' }, wrap: { type: [ 'boolean', 'string' ], description: 'Set whether the element is displayed in a single line or in multiple lines.', docs: { displayType: 'yaml' } }, justify: { type: 'string', enum: [ 'flex-start', 'center', 'flex-end', 'space-between', 'space-around', 'space-evenly' ], description: 'Set the alignment of elements on the main axis.' }, align: { type: 'string', enum: [ 'flex-start', 'center', 'flex-end', 'stretch', 'baseline' ], description: 'Set the alignment of elements on the cross axis.' }, gap: { type: [ 'string', 'number' ], description: 'Set the gap between items. Can be "small", "middle", "large", or a number.', docs: { displayType: 'yaml' } }, flex: { type: [ 'string', 'number' ], description: 'Flex CSS shorthand property.', docs: { displayType: 'yaml' } }, component: { type: 'string', description: 'Custom element type.' }, theme: { type: 'object', description: 'Antd design token overrides for this block. See <a href="https://ant.design/components/overview#design-token">antd design tokens</a>.', docs: { displayType: 'yaml', link: 'https://ant.design/components/flex#design-token' }, properties: { padding: { type: 'number', description: 'Base padding value.' }, margin: { type: 'number', description: 'Base margin value.' }, colorBgContainer: { type: 'string', description: 'Background color when used with a custom component wrapper.' } } } } } };