Skip to main content

Strong

Overview

The Strong component renders a styled <strong> element with Bulma helper class integration. Use it for text that has strong importance, seriousness, or urgency. The <strong> element carries semantic meaning for screen readers and search engines.

info

For visual-only bold styling without semantic meaning, use the Span component with textWeight="bold" instead.


Import

import { Strong } from '@allxsmith/bestax-bulma';

Props

PropTypeDefaultDescription
classNamestringAdditional CSS classes.
textColor'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | 'black' | 'black-bis' | 'black-ter' | 'grey-darker' | 'grey-dark' | 'grey' | 'grey-light' | 'grey-lighter' | 'white' | 'light' | 'dark' | 'inherit' | 'current'Text color helper.
bgColor'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' | 'black' | 'black-bis' | 'black-ter' | 'grey-darker' | 'grey-dark' | 'grey' | 'grey-light' | 'grey-lighter' | 'white' | 'light' | 'dark' | 'inherit' | 'current'Background color helper.
childrenReact.ReactNodeContent to render inside the strong element.
...All standard <strong> and Bulma helper props(See Helper Props)

Usage

Default Strong

The default usage renders bold text with semantic importance.

<Strong>Important text</Strong>

Colored Strong

Apply text color for additional emphasis.

<Strong textColor="primary">Primary strong text</Strong>

Danger Strong

Use danger color for warnings or critical information.

<Strong textColor="danger">Important warning!</Strong>

Strong with Background

Add background color and padding for a highlight effect.

<Strong bgColor="warning" p="1">
  Highlighted strong text
</Strong>

Inline with Text

Strong text works naturally inline within paragraphs.

<Paragraph>
  This is a paragraph with <Strong>strong text</Strong> in the middle. The
  strong text indicates <Strong textColor="primary">important</Strong> content.
</Paragraph>

All Colors

Display strong text in all Bulma theme colors.

<div style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem' }}>
  <Strong textColor="primary">Primary strong</Strong>
  <Strong textColor="link">Link strong</Strong>
  <Strong textColor="info">Info strong</Strong>
  <Strong textColor="success">Success strong</Strong>
  <Strong textColor="warning">Warning strong</Strong>
  <Strong textColor="danger">Danger strong</Strong>
</div>

Callout Pattern

A common pattern for callouts with a strong lead word.

<Paragraph>
  <Strong>Note:</Strong> This is a pattern commonly used for callouts where the
  lead word is strong to draw attention.
</Paragraph>


Accessibility

  • Semantic Importance: Screen readers typically announce <strong> content with additional emphasis.
  • Appropriate Use: Use <strong> for content that is truly important, not just for visual styling.
  • Color Contrast: When adding color, ensure sufficient contrast for readability.
info

The <strong> element indicates strong importance. For visual-only bold styling, use CSS or the Span component with textWeight="bold".


  • Emphasis: For semantically emphasized italic text.
  • Span: For styled inline text without semantic meaning.
  • Paragraph: For text paragraphs.
  • Helper Props: Bulma helper props for spacing, color, etc.

Additional Resources