mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 21:54:56 +00:00
31 lines
820 B
TypeScript
31 lines
820 B
TypeScript
import componentDefinitionsData from '@/lib/component-definitions.json'
|
|
import type { ComponentDefinition } from '@/lib/component-definition-types'
|
|
|
|
export const componentDefinitions = (componentDefinitionsData as ComponentDefinition[]).map(
|
|
(definition) => {
|
|
if (definition.type !== 'Breadcrumb') {
|
|
return definition
|
|
}
|
|
|
|
return {
|
|
...definition,
|
|
props: [
|
|
{
|
|
name: 'items',
|
|
type: 'BreadcrumbItem[]',
|
|
description: 'Breadcrumb items with labels and optional hrefs.',
|
|
supportsBinding: true,
|
|
},
|
|
{
|
|
name: 'className',
|
|
type: 'string',
|
|
description: 'Optional class names for the breadcrumb container.',
|
|
supportsBinding: true,
|
|
},
|
|
],
|
|
}
|
|
}
|
|
)
|
|
|
|
export default componentDefinitions
|