Skip to main content

Elements

Basis Theory Elements are simple, secure, developer-friendly inputs that empower developers to collect sensitive data from their users directly to Basis Theory's certified vault.

Think about it as an isolated sandbox within your frontend application that your end users are able to seamlessly interact with, and which securely communicates with the Basis Theory Vault. Sensitive data is not directly exposed to your application code, which keeps your mobile application out of compliance scope.

Here's how Basis Theory Elements make this possible:

  • Install one of our Elements SDKs into your web or mobile application
  • Build forms using our Element input components
  • Interact with the Basis Theory API using Element references, not plaintext data
  • Own your UI/UX by fully customizing how Elements are styled

Collect Sensitive Data

Data entered by your end users into an Element is tokenized and secured within Basis Theory's certified Vault, without your application needing to have direct access to this data.

Our SDKs provide several types of inputs to collect various types of data, such as the CardElement for collecting credit card data and TextElement for collecting arbitrary textual data.

Elements can be configured to support custom input masking, validation, and transformation rules to satisfy your unique requirements.

To get started collecting data, check out one of our guides that best suits your use case:

Reveal Sensitive Data

Tokens stored within the Basis Theory Vault can be securely revealed to end users without accessing the plaintext data directly within your application code.

Using one of our SDKs, sensitive data can be securely retrieved and applied to one or more Elements within your UI. The SDK will manage encapsulating the sensitive data so that your application can reference these value without having direct access to it.

To get started revealing sensitive data to your users, check out our guides:

Elements SDKs

JavaScript Elements SDK

basis-theory-js

React Elements SDK

basis-theory-react

iOS Elements SDK

basistheory-ios

Android Elements SDK

basistheory-android