# EventPersonWithEvent

Source: https://swapcard.dev/exhibitor/leads-api/graphql-exhibitor-api-schema/types/objects/event-person-with-event


const [open, setOpen] = useState(startOpen);
  return (
    <details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
      <summary
        onClick={(e) => {
          e.preventDefault();
          setOpen((open) => !open);
        }}
        style={{ listStyle:'none' }}
      >
      {open ? dataOpen : dataClose}
      </summary>
      {open && children}
    </details>
  );
};

No description

```graphql
type EventPersonWithEvent {
  fields: [FieldUnion!]!
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>EventPersonWithEvent.<b>fields</b></code>](#)<Bullet />[`[FieldUnion!]!`](/exhibitor/leads-api/graphql-exhibitor-api-schema/types/unions/field-union.mdx) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="union"/> 

### Member Of

[`EventPerson`](/exhibitor/leads-api/graphql-exhibitor-api-schema/types/objects/event-person.mdx)  <Badge class="badge badge--secondary" text="object"/>
