Home

Policy

The Software Development Kit (SDK) gives you tools to build integrations to Signatu using the React UI library. React 16.8 or higher is required.

See Theming for information about how to style the components.

Properties

<PolicyButton> is configured with the following properties:

  • id: The id of the Privacy Policy from your Signatu account.
  • color: “white”, “blue”, “black” or “gray”.

Example

import React from 'React';
...
import {PolicyButton} from '@signatu/sdk/dist/react/policy';
import {
ThemeProvider,
createTheme
} from '@signatu/sdk/dist/react/styles';
const config = {
apiKey: 'MY_API_KEY',
accessToken: 'MY_ACCESS_TOKEN'
}
const myTheme = {
palette: {
primary: {
color: "blue"
}
}
}
/* Now embed the policy button as follows */
<ThemeProvider theme={createTheme(myTheme)}>
<PolicyButton policyId="88223ee422c300ff" />
</ThemeProvider>