Acceptance
The Acceptance component provides a reusable pattern for acceptance in the interface.
Acceptance: Known provider
Known providers will output a well-formed name if the provider, and include the providers privacy policy. Unknown will just output domain.
This is the title of a known website (Google). You can find their policy here: https://policies.google.com/privacy.
This is the information that is shown describing what accepting means.
Hey! this is the content blocked. Javascript will not run until acceptance is received.
Acceptance: Video
Acceptance adapts to video URL's automatically to provide a familiar user interface.
Hey! this is the content blocked. Javascript will not run until acceptance is received.
Acceptance: Map
Acceptance adapts to map URL's automatically to provide a familiar user interface.
This is the title of a known website (ArcGIS). You can find their policy here: https://www.esri.se/sv-se/integritet/gdpr.
This is the information that is shown describing what accepting means.
Hey! This should be a map!
API
| Parameter | Default | Description |
|---|---|---|
|
labels
|
false | Object or array containing knownLabels and unknownLabels with title, info, and button |
|
height
|
false | height in number ex 500 |
|
src
|
false | array of urls to hide ex. https://www.youtube.com |
|
policy
|
false | URL to third party website policy |
|
host
|
false | host ex. youtube.com |
|
name
|
false | name of the host |
|
icon
|
info | Icon name as a string. |
|
cover
|
false | URL for background image |
|
modifier
|
Modifier variable ex. video | |
|
requiresAccept
|
true | Whether user-acceptance is required or not |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-acceptance--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |
|
--c-acceptance--color--alpha
|
var(--color--alpha) | rgba | - | Used for overlays. Includes opacity — set both color and alpha together. |
|
--c-acceptance--color--surface
|
var(--color--surface) | color | - | Surface |
|
--c-acceptance--corner-shape
|
var(--corner-shape) | select | square, round, squircle, circular, bevel, scoop | Corner Shape |
|
--c-acceptance--border-radius
|
var(--border-radius) | range | - | Border Radius |
|
--c-acceptance--space
|
var(--space) | range | - | Base spacing unit. Used for padding and margin inside components. |
|
--c-acceptance--shadow-color
|
var(--shadow-color) | rgba | - | Shadow Color |
|
--c-acceptance--shadow-amount
|
var(--shadow-amount) | range | - | Multiplier for elevation shadows. 0 = none, 1 = default. |
|
--c-acceptance--color--surface-border
|
var(--color--surface-border) | color | - | Manual companion token for borders on surface elements. |
|
--c-acceptance--color--surface-alt
|
var(--color--surface-alt) | color | - | Manual companion token for subtle surface backgrounds. |
|
--c-acceptance--color--alpha-contrast
|
var(--color--alpha-contrast) | color | - | Used for text and icons on alpha overlays. |
|
--c-acceptance--font-size-400
|
var(--font-size-400) | range | - | Three steps above base in the type scale. Equivalent to h4. |