Developer Help

Event Embed Widgets

Embed Streets events on your website with button and inline widgets

What are Event Embed Widgets?

Event embed widgets let you sell tickets to a Streets event directly on your own website. Add a few lines of HTML and your visitors can browse ticket tiers, select quantities, and check out without ever leaving your page.

Quick Start

1

Include the Script

Add the Streets embed script to your page

2

Add Widget HTML

Insert a widget div with your event share ID

3

Customize & Launch

Tweak colors, layout, and theme to match your site

1. Include the Embed Script

Add this script tag to your page's <head> or before the closing </body> tag:

<script src="https://thestreetsapp.com/embed/streets-embed.js"></script>

2. Button Widget (Modal)

A button widget displays a styled button on your page. When clicked it opens a modal overlay with the full ticket-selection and checkout flow.

<div data-streets-widget="button"
     data-type="event"
     data-share-id="tru-sundaze-presents-night-mode-634108f"
     data-api-key="sk_88bcd3673fed4fe2fab5bd2afc5a1341">
</div>

Button Options

AttributeDefaultDescription
data-button-textBuy TicketsButton label text
data-button-sizemediumsmall | medium | large
data-button-colorOverride button background color
data-primary-color#038882Accent color for the widget
data-modal-sizemediumsmall | medium | large

3. Inline Widget (Embedded)

An inline widget renders the event directly inside your page at the specified dimensions. It supports multiple layout modes.

<div data-streets-widget="inline"
     data-type="event"
     data-share-id="tru-sundaze-presents-night-mode-634108f"
     data-layout="full"
     data-height="600px"
     data-api-key="sk_88bcd3673fed4fe2fab5bd2afc5a1341">
</div>

Available Layouts

full

Complete event display with image, details, and ticket selection

hero

Full-width banner style with prominent imagery

card

Compact card with image overlay pricing

compact

Space-efficient for sidebars and narrow containers

minimal

Text-only, low-profile presentation

showcase

Gallery-style with custom background

4. Theming & Customization

Every visual aspect of the widget can be overridden with data-* attributes.

Color Attributes

AttributeDescription
data-primary-colorMain accent color
data-secondary-colorSecondary accent
data-background-colorWidget background
data-background-gradientCSS gradient value for the background
data-card-background-colorInner card surface color
data-text-colorPrimary text color
data-secondary-text-colorSecondary text
data-muted-text-colorMuted / caption text
data-border-colorBorder color

Typography Attributes

AttributeDescription
data-font-familyCSS font-family
data-font-sizeCSS font-size
data-font-weightCSS font-weight

Layout & Spacing

AttributeDefaultDescription
data-height500pxWidget height (inline only)
data-width100%Widget width (inline only)
data-border-radiusCSS border-radius
data-borderCSS border shorthand
data-paddingCSS padding
data-marginCSS margin
data-spacingInternal element spacing
data-box-shadowCSS box-shadow

Content Visibility

AttributeDefaultDescription
data-themelightlight | dark
data-show-imagetrueShow or hide the event image
data-show-sellertrueShow or hide the organizer info
data-show-descriptiontrueShow or hide event description
data-hide-brandingfalseHide Streets branding (requires API key)

Animation & Accessibility

AttributeDefaultDescription
data-animation-duration300msAnimation speed
data-hover-effectstrueEnable or disable hover effects
data-transitionCSS transition value
data-high-contrastfalseHigh-contrast accessibility mode
data-reduced-motionfalseDisable all animations
data-custom-cssInject raw CSS rules
data-css-classAdd a custom CSS class

Widget Preview

A button widget rendered with default settings:

Loading widget preview...

Use the interactive widget creator below to customise and preview all widget types, or visit the test page.

Interactive Widget Creator

Configure your event widget and preview it live. Copy the generated HTML to use on your site.

Host Domain Required

For the live preview to work, your embed domain must be registered in the Streets app. On this page, the host domain is thestreetsapp.com. Add this domain under Settings > Security > Embed Domains in the Streets app.

Configuration

Found in Settings > Security > Embed Domains

Live Preview

Enter a Share ID and API Key to see a live preview

Generated HTML Code

<div data-streets-widget="inline"
     data-type="event"
     data-share-id=""
     data-layout="full"
     data-height="500px"
     data-theme="light">
</div>

5. Dark Theme Example

<div data-streets-widget="inline"
     data-type="event"
     data-share-id="tru-sundaze-presents-night-mode-634108f"
     data-theme="dark"
     data-layout="card"
     data-height="400px"
     data-api-key="sk_88bcd3673fed4fe2fab5bd2afc5a1341">
</div>

6. Fully Styled Example

<div data-streets-widget="inline"
     data-type="event"
     data-share-id="tru-sundaze-presents-night-mode-634108f"
     data-layout="showcase"
     data-height="450px"
     data-primary-color="#10B981"
     data-background-color="#ECFDF5"
     data-border-radius="16px"
     data-font-family="Georgia, serif"
     data-box-shadow="0 8px 30px rgba(0,0,0,0.12)"
     data-api-key="sk_88bcd3673fed4fe2fab5bd2afc5a1341">
</div>

Try It Live

The interactive test page lets you enter your event Share ID and API Key, then see every widget type and attribute in action.

Open Event Widget Test Page