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

# MembershipPanel

Groups membership information and authored content.

Generated from @oods/foundry 0.10.1

- Categories

  core

- Contexts

  detail

- Readiness

  `proven-in-generated-apps`

## Playground

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

Documented example `membership-panel-title-and-summary` : mount without authored children, h2 heading from the heading alias, visible description and the body text inside the content area.

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

The real MembershipPanel, live

React

## Membership

Roles and permissions

Owner of 2 workspaces

Vue

## Membership

Roles and permissions

Owner of 2 workspaces

## Code

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

**React**

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

export function Example() {
  return (
    <MembershipPanel
      heading="Membership"
      description="Roles and permissions"
      body="Owner of 2 workspaces"
    />
  );
}
```

## 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 | |
| `heading` | `string \| undefined` | no | `Membership` |
| `name` | `string \| undefined` | no | |
| `subtitle` | `string \| undefined` | no | |
| `description` | `string \| undefined` | no | `Roles and permissions` |
| `metadata` | `string \| undefined` | no | |
| `summary` | `string \| undefined` | no | |
| `text` | `string \| undefined` | no | |
| `body` | `string \| undefined` | no | `Owner of 2 workspaces` |
| `emptyMessage` | `string \| undefined` | no | |

### Slots

default

### Events

none

## States

summary, content

## Accessibility

- Role

  `none`

- How it gets its name

  `heading` on `h1,h2,h3,h4,h5,h6`

### Keyboard

The contract lists no keyboard behaviour.

### Obligations in the contract

- A real h3 heading names the panel section
- Subtitle and summary text remain visible beside the heading
- The panel is noninteractive

Mirrors renderMembershipPanel over renderPanelSection with data-panel-type=membership: title aliases title/label/heading/name (default Membership), subtitle aliases subtitle/description/metadata, and summary/text/body/emptyMessage fill the content area only without authored children. The saved-schema directives membershipsField, hierarchyField, roleField and permissionField are consumed by codegen and left unbound: the HTML renderer reads no membership, hierarchy, role or permission data.

## Tokens

The token roles this component reads.

- `panel.background`
- `panel.border`
- `panel.title`
- `panel.subtitle`

## Readiness

The evidence recorded for this component, with its label.

`proven-in-generated-apps`: catalog_list gives this label when generated React and Vue apps in the runtime sweep that ships with this version both use the component. That sweep was measured on the published 0.4.1, not on this version.

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 |

MembershipPanel 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": "<YourMembershipPanel>",
  "oodsTraits": [
    "Authable"
  ],
  "substitution": {
    "component": "MembershipPanel",
    "react": {
      "package": "<your-package>/react",
      "version": "<exact version>",
      "export": "<YourMembershipPanel>"
    },
    "vue": {
      "package": "<your-package>/vue",
      "version": "<exact version>",
      "export": "<YourMembershipPanel>"
    }
  }
}
```

## 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-panel/manifest.json).

- **Contract**: `@oods/component-contracts@0.10.1 componentContracts.MembershipPanel` `sha256:b012fabcf360…`
- **Documented example**: `@oods/component-contracts@0.10.1 sharedScenarios membership-panel-title-and-summary` `sha256:3eb9d0c8d37f…`
- **Catalog entry (catalog_list)**: `generated/0.10.1/system/catalog.json MembershipPanel` `sha256:cd5728c2cce1…`
- **React readiness**: `@oods/components-react@0.10.1 readiness MembershipPanel` `sha256:4d22a4d7927e…`
- **Vue readiness**: `@oods/components-vue@0.10.1 readiness MembershipPanel` `sha256:0efce16e8142…`
- **Prop types**: `generated/0.10.1/components/prop-types.json MembershipPanel` `sha256:57585e3e734e…`
