Skip to main content

<SpacesAgreement />

This component must be a descendent of the <Spaces/> provider. Display the agreement for a given space id received from the <Spaces /> provider.

Example​

import React from 'react';
import Spaces, { SpacesAgreement } from '@availity/spaces';

const Example = () => (
<Spaces
spaceIds={['73162546201441126239486200007187']}
clientId="my-client-id"
>
<SpacesAgreement markdown />
</Spaces>
);

Live example: Storybook​

Props​

spaceId?: string​

The id of the space to render the agreement for. If no spaceId is provided, the first space in the spaces array is used. Note: This is only to be used when the Spaces provider should only ever contain a single space.

markdown?: boolean​

Render the agreement as markdown.