import { ApiPropertyCard } from "@pixxl-tools/components";
// In Server Components:
import { ApiPropertyCard } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
name (required) | ReactNode | — | Property name. |
defaultValue | ReactNode | — | Default value (rendered as code when a string). |
description | ReactNode | — | Strings render backtick spans as InlineCode. |
id | string | — | Anchor id; the name links to #id. |
since | string | — | Version that added the property. |
type | ReactNode | — | Type (a string renders as a TypeSignature). |
deprecated | boolean | ReactNode | — | true or a message (e.g. "Use size instead."). |
headingAs | HeadingElement | h3 | Heading element of the name (default h3). |
required | boolean | — | Marks the field required. |
namerequiredReactNode
Property name.
defaultValueReactNode
Default value (rendered as code when a string).
descriptionReactNode
Strings render backtick spans as InlineCode.
idstring
Anchor id; the name links to #id.
sincestring
Version that added the property.
typeReactNode
Type (a string renders as a TypeSignature).
deprecatedboolean | ReactNode
true or a message (e.g. "Use size instead.").
headingAsdefault h3HeadingElement
Heading element of the name (default h3).
requiredboolean
Marks the field required.
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
cookieDomainstringComplex object props use fixed fixtures. Primitive props stay editable.
<ApiPropertyCard name="cookieDomain" type="string" description="Share the theme cookie across subdomains." since="0.3.0" />cookieDomainstring<ApiPropertyCard name="cookieDomain" type="string" description="Share the theme cookie across subdomains." since="0.3.0" />