mirror of
https://github.com/zoriya/v10.git
synced 2026-08-14 18:04:49 +00:00
feat(site): feature and preset reference UI + docs integration (#1258)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
5301202a18
commit
d4b805ea69
@@ -0,0 +1,42 @@
|
||||
---
|
||||
import Table from '@/components/typography/Table.astro';
|
||||
import Tbody from '@/components/typography/Tbody.astro';
|
||||
import Th from '@/components/typography/Th.astro';
|
||||
import Thead from '@/components/typography/Thead.astro';
|
||||
import Tr from '@/components/typography/Tr.astro';
|
||||
import type { FeatureActionDef } from '@/types/feature-reference';
|
||||
import StateRow from './StateRow.astro';
|
||||
|
||||
interface Props {
|
||||
actions: Record<string, FeatureActionDef>;
|
||||
featureName: string;
|
||||
}
|
||||
|
||||
const { actions, featureName } = Astro.props;
|
||||
|
||||
const actionEntries = Object.entries(actions);
|
||||
---
|
||||
|
||||
<Table maxWidth={false} outerClass="my-6">
|
||||
<Thead>
|
||||
<Tr>
|
||||
<Th>Action</Th>
|
||||
<Th>Type</Th>
|
||||
<Th>Details</Th>
|
||||
</Tr>
|
||||
</Thead>
|
||||
<Tbody>
|
||||
{
|
||||
actionEntries.map(([name, def]) => (
|
||||
<StateRow
|
||||
name={name}
|
||||
type={def.type}
|
||||
detailedType={def.detailedType}
|
||||
description={def.description}
|
||||
componentName={featureName}
|
||||
kind="action"
|
||||
/>
|
||||
))
|
||||
}
|
||||
</Tbody>
|
||||
</Table>
|
||||
Reference in New Issue
Block a user