DÁP badge

This badge is a brand item showing that the frontend of the app uses the DÁP design system.

Examples
<dap-ds-stack>
<dap-ds-dap-badge>
</dap-ds-dap-badge>
<div style={{ backgroundColor: 'var(--dds-indigo-1000)', padding: 10 }}>
  <dap-ds-dap-badge inverted>
  </dap-ds-dap-badge>
</div>
</dap-ds-stack>
Importing
import { DapDSDAPBadge } from 'dap-design-system/dist/dds'
Importing React
import { DapDSDAPBadgeReact } from 'dap-design-system/dist/react'
Attributes
PropertyTypeDefaultDescription
invertedbooleanfalseThe color style of the DÁP badge
variant'normal', 'inverted''normal'The variant of the DÁP badge
Slots
NameDescription
(default)Description of badge *
Events

No custom events available.

CSS Parts
Part NameDescription
baseMain badge container
iconBadge icon
textBadge text
CSS Custom Properties
Property NameDescription
--dds-badge-paddingCustom padding for the badge (default: var(--dds-spacing-200) var(--dds-spacing-300))
--dds-badge-border-widthCustom border width for the badge (default: var(--dds-border-width-base))
--dds-badge-border-colorCustom border color for the badge (default: var(--dds-border-neutral-divider))
--dds-badge-border-radiusCustom border radius for the badge (default: var(--dds-spacing-200))
--dds-badge-colorCustom text color for the badge (default: var(--dds-text-neutral-base))
--dds-badge-gapCustom gap between icon and text (default: var(--dds-spacing-200))
--dds-badge-font-sizeCustom font size for the badge (default: var(--dds-font-xs))
--dds-badge-font-weightCustom font weight for the badge (default: var(--dds-font-weight-medium))
--dds-badge-line-heightCustom line height for the badge (default: var(--dds-font-line-height-large))