Components
Explore the reusable UI components available across Svenska Spel products. Each component is designed to be consistent, accessible and compatible with Svenska Spel themes.
Use components as provided whenever possible to create familiar experiences and benefit from ongoing improvements. Select a component to find usage guidance, examples and implementation details.
Using the components outside Svenska Spel services? The public package is available on npm as @svenskaspel/ui. The Code pages use this public package for their examples and API documentation. See Developing for installation, styles and theme setup.
Accordion
Use Accordion to provide additional information or controls.
Updated:
Avatar
Use Avatar to visually represent users or entities in a compact and recognisable way.
Updated:
Badge
Use to indicate a notification, item count, or other information.
Updated:
Bet Button
Use bet buttons as part of game coupons within sports products such as Powerplay, Stryktipset, and Europatipset.
Updated:
Bet Prediction
Use bet predictions to display a customer’s coupon selections and their outcomes based on game results.
Updated:
Bottom sheet
Use to present complementary content or functionality connected to the main page.
Updated:
Button
Use buttons to inform users of the actions they can take.
Updated:
Callout
Use callouts for editorial or marketing messaging, status or contextual information, or emphasising a concept, feature, or moment in time.
Updated:
Card
Use a card to display content and actions on a single topic.
Updated:
Carousel
Use a Carousel to let users browse a sequence of related images or other content within a shared space.
Updated:
Checkbox
Use checkboxes to allow users to enable or disable options in a form.
Updated:
Composable Modal
Use Composable Modal for focused tasks that need a custom layout inside a modal.
Updated:
Date Picker
Use the Date picker to provide the user an intuitive way to pick a singular, or a range of dates.
Updated:
Dialog
Use dialogs sparingly when users must take action before using the rest of the site.
Updated:
Drawer
Use a swipeable panel to present complementary content from any edge of the viewport. Replaces Bottom sheet.
Updated:
Floating Action Bar
Use a Floating Action Bar to support key end actions without interrupting the user flow.
Updated:
Input
Use input to allow users to enter letters and numbers into a field.
Updated:
Notice
Use when the user needs to understand status, risk, or the next step without leaving their flow.
Updated:
Pagination
Use Pagination when a collection is too large to fit in a single view and the user needs a consistent way to navigate through it.
Updated:
Popover
Use popovers to provide supplementary information that may not be directly available in the main interface.
Updated:
Price label
Use price labels to highlight pricing information, showcase promotional offers, or emphasise value.
Updated:
Radio group
Use a radio group to allow users to select one option from a group.
Updated:
Select
Use Select to handle a longer list of options from which the user can choose one.
Updated:
Separator
Use the separator to organise content, create visual rhythm and establish hierarchy in your design.
Updated:
Slider
Use a slider to let users select a single value from a continuous scale.
Updated:
Snackbar
Use a snackbar to confirm that an action succeeded or an error occurred.
Updated:
Switch
Use Switch to allow users to enable or disable an option.
Updated:
Table
Use a table to display structured information in rows and columns, making it easy for users to scan, compare, and understand data such as transactions or game history.
Updated:
Tabs
Use Tabs to allow the user to switch content within a section.
Updated:
Tabs Menu
Use Tabs menu as the primary navigation pattern within a location.
Updated:
Toggle Group
Use a toggle group to allow users to make single mutually exclusive selections or multiple independent selections.
Updated:
Tooltip
Use tooltips to provide short, contextual information about an element.
Updated:
Legacy components
If you are looking for documentation for legacy components, you will find it in our old internal styleguide.