No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:

  1. Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the Decorators documentation.
  2. Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring Webpack or Vite with Storybook.
  3. Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the Environment Variables documentation.

This is a pre-release version and is not production ready. For new and ongoing projects, please refer to the latest Design System version.

Borders & Radius

Use border utilities to define and style the border and border-radius of an element.

The border utility provides the ability to add, remove, or style borders using predefined classes.

  • border: Applies a border on all sides of an element.

  • border-{side}: Sets the border on a specific side. Supports border-top (top edge), border-end (inline end, mapped to right in LTR), border-bottom (bottom edge), and border-start (inline start, mapped to left in LTR).

  • border-width: Defines the border width.

Sample Text
<div class="border">Sample Text</div>
NameDescriptionDefaultControl
Add Borders
border-{side}
Sets the default border on all sides. Use border-top, border-end, border-bottom, or border-start to apply borders to specific sides.
string
-
Set Border Width
border-{width}
Sets the border width (border-1 applies a 1px border, border-2 applies a 2px border).
string
-

Border subtraction can be achieved with the use of the border-{side}-0 classes.

Sample Text
<div class="border">Sample Text</div>
NameDescriptionDefaultControl
Remove Borders
border-{side}-0
Removes the selected border. Use border-top-0, border-end-0, border-bottom-0, or border-start-0 to subtract the border from specific sides.
string
-

Add the rounded class to an element to easily apply a border-radius on its corners.

  • rounded-{side}-{scale}: Αpplies a border-radius on all or specific sides and defines its scale. Predefined classes for the side are: top, end , bottom and start and for the scale are: 4: 4px, 8: 8px, pill: 50rem and circle: 50%.
Sample Text
<div class="border rounded-4">Sample Text</div>
NameDescriptionDefaultControl
rounded-{side}-{scale}
Enables the border radius and sets its scale.
string
-