--- import { kebabCase } from 'es-toolkit/string'; import MarkdownCode from '@/components/typography/MarkdownCode.astro'; import Td from '@/components/typography/Td.astro'; import DetailRow from './DetailRow.astro'; interface Props { name: string; type: string; detailedType?: string; description?: string; defaultValue?: string; required?: boolean; showAttributeName?: boolean; componentName: string; } const { name, type, detailedType, description, defaultValue, required, showAttributeName, componentName } = Astro.props; const id = `${componentName}-${name}`; const attributeName = showAttributeName ? kebabCase(name) : undefined; --- {name} {required && *} {type} {defaultValue ?? "—"}