NativeReadinessChip
The resource workspace's pieces on the phone (a form, a course, a lesson): the twins of genesis-ui's `/resource` components, over the same genesis-core rules (`@marktiderman/genesis-core/resource`). - NativeReadinessChip: "Ready to publish", or how many problems to fix (`readinessChip`). - NativeHeadlineNumbers: a grid of headline numbers, two across (`HeadlineNumber`). - NativeSummaryCard: one card of a summary: an icon, a title, a line on the right, then the body. - NativeFollowUpList: responses that need a follow-up, with their tag, comment, low score and actions. - NativeResponsesToolbar: Summary / Each response, the host's filters and its actions.
packages/ui-native/src/components/resource.tsx
Import
Subpath export:
@marktiderman/genesis-ui-nativeimport { NativeReadinessChip } from "@marktiderman/genesis-ui-native";Components
Auto-generated from TypeScript source via
react-docgen-typescript.NativeReadinessChip
| Prop | Type | Default | Description |
|---|---|---|---|
| readiness* | Readiness | — | |
| className | string | — | |
| labels | ReadinessLabels | — | |
| onPress | (() => void) | — | Makes it a button (open the checks). |
NativeHeadlineNumbers
| Prop | Type | Default | Description |
|---|---|---|---|
| numbers* | readonly HeadlineNumber[] | — | |
| className | string | — | |
| isLoading | boolean | false |
NativeSummaryCard
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | string | — | |
| className | string | — | |
| icon | ReactNode | — | |
| meta | ReactNode | — | |
| testID | string | — |
NativeFollowUpList
| Prop | Type | Default | Description |
|---|---|---|---|
| entries* | readonly NativeFollowUpEntry[] | — | |
| actions | ((entry: NativeFollowUpEntry) => ReactNode) | — | |
| className | string | — | |
| empty | string | Nothing to follow up right now. | |
| isLoading | boolean | false | |
| noComment | string | No comment | |
| title | string | Needs a follow-up |
NativeResponsesToolbar
| Prop | Type | Default | Description |
|---|---|---|---|
| onViewChange* | (view: NativeResponsesView) => void | — | |
| view* | enum | — | |
| actions | ReactNode | — | |
| className | string | — | |
| filters | ReactNode | — | |
| labels | { summary?: string; each?: string; } | undefined | {} |