Back to squares.vote

squares.vote embed demo

Choose the embed style that works best for your website.

Option 1: Card Embed (Recommended)

Self-contained with explanation and example. Best for first-time visitors.

Square Your Political Personality

Square yourself across five political dimensions

EXAMPLE:Martin Luther King Jr.
TradeAbortionMigrationEconomicsRights

Takes less than 2 minutes · Free & open source

Show embed code
import { SquaresEmbedReact } from '@squares-app/react';

function MyComponent() {
  return (
    <SquaresEmbedReact
      variant="card"
      buttonText="Square Your Political Personality"
      align="center"
      maxWidth="600px"
      primaryColor="#4285f4"
      borderRadius="12px"
      shadow={true}
    />
  );
}

Live Demo - Card Variant

Full card with image, description, and button

Square Your Political Personality

Square yourself across five political dimensions

EXAMPLE:Martin Luther King Jr.
TradeAbortionMigrationEconomicsRights

Takes less than 2 minutes · Free & open source

Show embed code
import { SquaresEmbedReact } from '@squares-app/react';

function MyComponent() {
  return (
    <SquaresEmbedReact
      variant="card"
      buttonText="Square Your Political Personality"
      align="center"
      maxWidth="600px"
      primaryColor="#4285f4"
      borderRadius="12px"
      shadow={true}
    />
  );
}

Option 2: Button Only

Minimal embed for sites where context is already provided.

Show embed code
import { SquaresEmbedReact } from '@squares-app/react';

function MyComponent() {
  return (
    <SquaresEmbedReact
      variant="button"
      buttonText="Square Your Political Personality"
      align="center"
      maxWidth="400px"
    />
  );
}

Customization Options

OptionTypeDefaultDescription
variantstring'card''card' or 'button'
buttonTextstring'Square Your Political Personality'Custom button text
alignstring'center''left', 'center', or 'right'
maxWidthstringnullMax width (e.g., '600px')
primaryColorstringnullCustom button color (hex)
borderRadiusstringnullCustom border radius
shadowbooleantrueShow/hide shadow

Features