mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(site): generated multipart component api reference (#468)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
---
|
||||
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;
|
||||
shortType?: string;
|
||||
description?: string;
|
||||
componentName: string;
|
||||
}
|
||||
|
||||
const { name, type, shortType, description, componentName } = Astro.props;
|
||||
|
||||
const displayType = shortType ?? type;
|
||||
const id = `${componentName}-state-${name}`;
|
||||
---
|
||||
|
||||
<DetailRow id={id} name={name} type={type} shortType={shortType} description={description} colspan={3}>
|
||||
<Td class="align-top">
|
||||
<MarkdownCode>{name}</MarkdownCode>
|
||||
</Td>
|
||||
<Td class="align-top">
|
||||
<MarkdownCode>{displayType}</MarkdownCode>
|
||||
</Td>
|
||||
</DetailRow>
|
||||
Reference in New Issue
Block a user