[Components](https://oods-foundry.com/components) / core

# MembershipAuditTimeline

Lists recorded membership changes over time.

Generated from @oods/foundry 0.10.1

- Categories

  core

- Contexts

  timeline

- Readiness

  `react-and-vue`

## Playground

This component's contract doesn't list typed props, so the playground shows its documented example.

Documented example `membership-audit-timeline-empty` : mount without events, a log region titled Membership history whose only list item names the empty state.

The render follows the page's theme switch: light, dark or high contrast. Both frameworks render the same example.

The real MembershipAuditTimeline, live

React

## Membership history

1. No events

Vue

## Membership history

1. No events

## Code

The documented example. HTML is the markup the React component renders for it, which @oods/component-styles styles.

**React**

```
import { MembershipAuditTimeline } from '@oods/components-react';
import '@oods/component-styles/css';

export function Example() {
  return (
    <MembershipAuditTimeline
      label="Membership history"
    />
  );
}
```

## Props, slots and events

Contract version 1.1.0. Types are from the React declarations in @oods/components-react.

Props

| Prop | Type | Required | Documented example |
| - | - | - | - |
| `title` | `string \| undefined` | no | |
| `label` | `string \| undefined` | no | `Membership history` |
| `heading` | `string \| undefined` | no | |
| `name` | `string \| undefined` | no | |
| `events` | `readonly unknown[] \| undefined` | no | |
| `memberships` | `readonly unknown[] \| undefined` | no | |
| `history` | `readonly unknown[] \| undefined` | no | |

### Slots

default

### Events

none

## States

populated, empty

## Accessibility

- Role

  `log`

- How it gets its name

  `aria-label` on `[role="log"]`

### Keyboard

The contract lists no keyboard behaviour.

### Obligations in the contract

- A log region named by its title, which is also a real h3 heading
- Events are an ordered list with machine-readable timestamps
- An empty timeline is named No events

Mirrors renderMembershipAuditTimeline over renderTimelineContainer with data-timeline-type=membership and role=log: title aliases title/label/heading/name (default Membership Timeline); the first array among events/memberships/history supplies the events, each rendered as label, time and detail exactly as normalizeTimelineItems reads them (records use label/title/event/status/state/text/name, timestamp/datetime/time/at/createdAt/updatedAt and detail/description/reason/message/from/to; scalars render as text); no events renders the named empty item; authored children replace the list. The generic field (the membership_records collection) lowers to events.

## Tokens

The token roles this component reads.

- `timeline.background`
- `timeline.border`
- `timeline.text`
- `timeline.marker`

## Readiness

The evidence recorded for this component, with its label.

`react-and-vue`: catalog_list gives this label when the React and Vue components have complete readiness evidence, but the sweep's generated apps don't use the component in both.

Readiness evidence

| Evidence | React | Vue |
| - | - | - |
| state | implemented-evidence-complete | implemented-evidence-complete |
| versioned contract | passed | passed |
| target implementation | passed | passed |
| package export | passed | passed |
| public declaration | passed | passed |
| dependency closure | passed | passed |
| framework scenario | passed | passed |
| accessibility | verified | verified |
| interaction | not-applicable | not-applicable |
| visual themes | verified | verified |

MembershipAuditTimeline presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.

## Use your own

You can replace this component with your own React or Vue component. Map it, and generated code imports yours at the exact version you name. A contract report, run in a real browser, lists what your component met, what it didn't, and what wasn't checked.

The `component_map` call, with the parts in angle brackets yours to fill:

```
{
  "action": "create",
  "apply": true,
  "externalSystem": "<your design system>",
  "externalComponent": "<YourMembershipAuditTimeline>",
  "oodsTraits": [
    "<trait names>"
  ],
  "substitution": {
    "component": "MembershipAuditTimeline",
    "react": {
      "package": "<your-package>/react",
      "version": "<exact version>",
      "export": "<YourMembershipAuditTimeline>"
    },
    "vue": {
      "package": "<your-package>/vue",
      "version": "<exact version>",
      "export": "<YourMembershipAuditTimeline>"
    }
  }
}
```

## How this page was made

Generated at build from the published data, each source with the hash of what was read. [The page's manifest](https://oods-foundry.com/components/membership-audit-timeline/manifest.json).

- **Contract**: `@oods/component-contracts@0.10.1 componentContracts.MembershipAuditTimeline` `sha256:76151619efe3…`
- **Documented example**: `@oods/component-contracts@0.10.1 sharedScenarios membership-audit-timeline-empty` `sha256:f84e633fbb8b…`
- **Catalog entry (catalog_list)**: `generated/0.10.1/system/catalog.json MembershipAuditTimeline` `sha256:761324bbb88f…`
- **React readiness**: `@oods/components-react@0.10.1 readiness MembershipAuditTimeline` `sha256:a2bb162cdd54…`
- **Vue readiness**: `@oods/components-vue@0.10.1 readiness MembershipAuditTimeline` `sha256:fb6bd6a183c5…`
- **Prop types**: `generated/0.10.1/components/prop-types.json MembershipAuditTimeline` `sha256:482c23d5cd86…`
