### HTML Search Input Example Source: https://www.mybring.com/design-system/components/forms/search-input Demonstrates a common pattern for search inputs combined with a button. It follows best practices like using `type='search'` for built-in clear functionality and always including a label for accessibility. The example uses utility classes for layout and styling. ```html
``` -------------------------------- ### MybringDesign Toolbar Component Example Source: https://www.mybring.com/design-system/components/buttons/toolbar This component groups buttons together and applies necessary styling. It includes examples of buttons with icons and text. A `pointev-none` class can be added to icons if they interfere with clickability. ```html
``` -------------------------------- ### HTML Example: Flexbox Flex-Start Alignment Source: https://www.mybring.com/design-system/utilities/flexbox/align Demonstrates aligning flex items to the start of the cross axis in a wrapping flex container. This ensures items are packed towards the beginning. ```html
A
B
C
``` -------------------------------- ### Applying Utility Classes Source: https://www.mybring.com/design-system/utilities Example of how to apply design system utility classes to HTML elements for styling. ```html
Use design system classes before writing new CSS
``` -------------------------------- ### Mybring Design System HTML Button Examples Source: https://www.mybring.com/design-system/components/buttons Illustrates how to implement Mybring Design System buttons using HTML. Shows examples for expandable, dropdown, and icon-only buttons with embedded icons using specific span attributes. ```html ``` -------------------------------- ### Checkbox Example (HTML) Source: https://www.mybring.com/design-system/components/forms/check-radio Demonstrates the usage of checkboxes for multiple selections. Each checkbox input is wrapped within a label element for better accessibility and usability. Includes examples for standard checkboxes and the indeterminate state. ```html
Legend
Indeterminate
``` -------------------------------- ### Align Items Flex Start - HTML Example Source: https://www.mybring.com/design-system/utilities/flexbox/align Demonstrates using the 'align-ifs' utility class to position flex children at the start of the cross axis. This requires a parent element with 'display: flex' and child elements. ```html
A – – – – – – – – – – – – – –
B
C
``` -------------------------------- ### Dropdown Example Menu Source: https://www.mybring.com/design-system/components/disclosure Provides an example HTML structure for a custom dropdown menu, demonstrating how links and actions can be presented within a collapsible interface. ```html Menu Link to some place Link to some other place Short link Link Close Close Information about the choice Close and archive I’m different too, but we’re all just variations Close and delete ``` -------------------------------- ### Radio Input Example (HTML) Source: https://www.mybring.com/design-system/components/forms/check-radio Illustrates how to implement radio buttons for single selection scenarios. Each radio input is associated with a label element. The example shows how to manage selected states and advises against disabling options in favor of removing them. ```html
Tracking type
``` -------------------------------- ### HTML Example of Owl Spacing Source: https://www.mybring.com/design-system/utilities/size-and-space/owl Demonstrates the usage of the 'owls' class on a container element to apply vertical spacing to its child elements. The example shows a nested structure with background colors for clarity. ```html
* + *
* + *
* + *
``` -------------------------------- ### Alerts: Basic HTML Example Source: https://www.mybring.com/design-system/components/alerts Demonstrates the basic usage of alert messages for success, warning, and error states. These examples utilize specific CSS classes like 'message--success', 'message--warn', and 'message--error' for styling. They also incorporate utility classes for layout and spacing. ```html
This worked exactly as it should.
Confirmation emails can be delayed up to ten minutes.
The form contains errors that need to be fixed before you can proceed.
``` -------------------------------- ### Utility Class Definitions Source: https://www.mybring.com/design-system/utilities CSS rules corresponding to the utility classes used in the HTML example. ```css .maxw40r { max-width: 40rem; } .mbl { margin-bottom: 2rem; } .pam { padding: 1rem; } .bg-gray2 { background-color: hsl(0, 0%, 95%); } .text-1\.25 { font-size: 1.25rem; } ``` -------------------------------- ### HTML Example: Flexbox Center Alignment Source: https://www.mybring.com/design-system/utilities/flexbox/align Demonstrates centering items within a flex container using CSS properties. This example shows a basic setup for cross-axis centering. ```html
A
B
C
``` -------------------------------- ### Flexbox Layout Example Source: https://www.mybring.com/design-system/guidelines/building-layout Demonstrates building a responsive layout using Mybring's flexbox utilities for side-by-side elements that wrap based on content and container size. ```html
``` -------------------------------- ### Align Self Flex Start - HTML Example Source: https://www.mybring.com/design-system/utilities/flexbox/align Demonstrates using the 'align-sfs' utility class on a child element to override the parent's 'align-items' and position the child at the start of the parent's cross axis. ```html
A
B
C
``` -------------------------------- ### MyBring Icon Implementation (data-mybicon) Source: https://www.mybring.com/design-system/components/icons Demonstrates how to implement general MyBring icons using `data-mybicon` attributes in HTML. Includes examples for basic usage and advanced options like custom classes, dimensions, and titles. ```html ``` -------------------------------- ### Flexbox Justify-Content: flex-start Example Source: https://www.mybring.com/design-system/utilities/flexbox/justify Demonstrates the use of the `justify-cfs` utility class to position flex children at the start of the main axis. This is the default behavior for flex containers. ```html
A
B
C
``` -------------------------------- ### HTML Example: Flexbox Space-Around Alignment Source: https://www.mybring.com/design-system/utilities/flexbox/align Demonstrates distributing space around flex items in a wrapping container. Each item gets equal space on both sides, with half-spaces at the ends. ```html
A – – – – – – – – – – – – – – – – –
B – – – – – – – – – – – –
C
``` -------------------------------- ### Initialize Chart.js with Base Configuration Source: https://www.mybring.com/design-system/components/charts Sets up chart.js with default configurations and color palettes provided by the `@mybring/charts` package. This is the primary step for integrating charts. ```javascript import { configureChartJs, colors } from '@mybring/charts' configureChartJs() ``` -------------------------------- ### HTML Example: Flexbox Space-Between Alignment Source: https://www.mybring.com/design-system/utilities/flexbox/align Shows distributing space between flex items in a wrapping container. The first item is at the start, the last at the end, and remaining space is distributed evenly between items. ```html
A – – – – – – – – – – – – – – – – –
B – – – – – – – – – – – –
C
``` -------------------------------- ### Standard Notice Component Source: https://www.mybring.com/design-system/components/notice Demonstrates the basic 'mb-notice' component for general information delivery. It can contain text and links, and is styled with 'flex', 'gas', 'maxwmaxc', and 'mbl' classes for layout and responsiveness. ```html

We can deliver your packages to a parcel locker. Select Optional pickup point from Additional services, type in e.g. "pakkeboks Ski", and pick your desired parcel locker from the dropdown list. Alternatively you can type in a postal code to get a list of the nearest pickup points.

Business parcel

Weight:
Max 35 kg per parcel
Delivery:
Tomorrow at 09-13
Price:
Calculation available
``` -------------------------------- ### Flexbox Gap Example - HTML Source: https://www.mybring.com/design-system/utilities/size-and-space/gap Demonstrates the usage of flexbox utilities and gap classes to create a responsive grid layout with spacing between items. It shows how to apply classes for width, padding, and gap to child elements within a flex container. ```HTML
Child
Child
Child
Child
Child
Child
Child
Child
Child
Child
``` -------------------------------- ### HTML Example: Flexbox Stretch Alignment Source: https://www.mybring.com/design-system/utilities/flexbox/align Shows how to stretch flex items to fill the container along the cross axis. This example applies stretching to items within a flex container. ```html
A
B
C
``` -------------------------------- ### HTML for Description Lists Source: https://www.mybring.com/design-system/components/lists Illustrates the structure for description lists (`
`), which are used for presenting terms and their definitions or key-value pairs. The examples show grouping terms (`
`) and descriptions (`
`) using `div` elements and applying the `mb-dlist` class for specific styling. ```html
Shipment
123456789
Recipient
Burgers and Beauty as
Sent
26.06.2016 14.12
Shipment
987654321
Recipient
Acme Industries
Sent
14.07.2016 12.56
Shipment
123456789
Recipient
Burgers and Beauty as
Sent
26.06.2016 14.12
Shipment
456789123
Recipient
Rent-A-Cat Co.
Sent
02.05.2016 11.38
``` -------------------------------- ### MyBring Service Icon Implementation (data-serviceicon) Source: https://www.mybring.com/design-system/components/icons Demonstrates how to implement Bring service icons using `data-serviceicon` attributes in HTML. Covers basic usage and advanced options for custom classes, dimensions, and titles for service-specific icons. ```html ``` -------------------------------- ### Pagination with Links Source: https://www.mybring.com/design-system/components/pagination Demonstrates pagination implemented using anchor () tags for navigation, providing a semantic alternative to buttons. This example shows how links can be styled to function as pagination controls. ```HTML ``` -------------------------------- ### HTML Example: Flexbox Stretch Cross-Axis Alignment Source: https://www.mybring.com/design-system/utilities/flexbox/align Demonstrates stretching flex items to fill the container along the cross axis. This example applies stretching to items within a flex container. ```html
A
B
C
``` -------------------------------- ### Browserslist Recommendation for Modern Web Development Source: https://www.mybring.com/design-system/basics/browser-support This configuration specifies browser compatibility targets for tools like Autoprefixer and Babel. It prioritizes usage percentage and specific browsers over 'last x version' for better adaptability and maintenance. ```json { "browserslist": [ "> .2%", "ie not > 0" ] } ``` -------------------------------- ### HTML Example: Flexbox Wrap Center Alignment Source: https://www.mybring.com/design-system/utilities/flexbox/align Illustrates centering items within a flex container that also wraps. This example applies cross-axis centering to items that may span multiple lines. ```html
A
B
C
``` -------------------------------- ### Mybring Design System `mb-card` Component Example Source: https://www.mybring.com/design-system/components/cards This snippet demonstrates the usage of the `mb-card` class to create interactive cards. These cards are designed as entrance elements, displaying parcel information like weight, delivery time, and price. They are styled with flexbox for layout and include basic HTML structure for content. ```html ```