Component code
Component code is a Component’s web rendering, composed from the kernel components, beside the file that types its props.
| Property | Value |
|---|---|
| Path | components/ |
| Holds | Component |
| Kind | file |
| Leaders | db-first, git-first |
| Team | Product Team |
| Written by | None. |
| Compiled by | SiteBuilder |
Example
components/ in a Startup repository. Closewise, a sample business, declares a Close Noun.
import { StateBadge, Timeline } from 'startup-builder/ ui'
export default function CloseProgress({ close }: { close: Close }) {
return (
<section>
<h3>{close.period}{close.balanced ? ': balanced' : ''}</h3>
<StateBadge thing={close.$id} />
<Timeline thing={close.$id} />
</section>
)
}Exports
| Export | Kind | Type |
|---|---|---|
default | default | (props: |
Signature
(props: Props) => JSX.ElementGenerates
SiteBuilder compiles it into these records, Verbs and routes.
| Kind | What |
|---|---|
| Records | Component |
| Verbs | None. |
| Routes | None. |