# OnDemandComponentInput

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/inputs/on-demand-component-input


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
input OnDemandComponentInput {
  video: EmbeddedVideoInput!
  availableAt: DateTime
  availableUntil: DateTime
  isPublic: Boolean
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>OnDemandComponentInput.<b>video</b></code>](#)<Bullet />[`EmbeddedVideoInput!`](/organizer/content-api/graphql-event-api-schema/inputs/embedded-video-input) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>OnDemandComponentInput.<b>availableAt</b></code>](#)<Bullet />[`DateTime`](/organizer/content-api/graphql-event-api-schema/scalars/date-time) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>OnDemandComponentInput.<b>availableUntil</b></code>](#)<Bullet />[`DateTime`](/organizer/content-api/graphql-event-api-schema/scalars/date-time) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>OnDemandComponentInput.<b>isPublic</b></code>](#)<Bullet />[`Boolean`](/organizer/content-api/graphql-event-api-schema/scalars/boolean) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

### Member Of

[`UpdatePlanningInput`](/organizer/content-api/graphql-event-api-schema/inputs/update-planning-input)  <Badge class="badge badge--secondary" text="input"/><Bullet />[`UpsertEventPlanningInput`](/organizer/content-api/graphql-event-api-schema/inputs/upsert-event-planning-input)  <Badge class="badge badge--secondary" text="input"/>
