Skip to content
Components / Patterns

Suggestion card

Empty-state prompts in a grid on wide screens and a scroll row on narrow ones.

@fabrials/ui
Loading state

Picked: none

Installation

  1. Import the control from @fabrials/ui, after setting the app up.

    TypeScript
    import { SuggestionCard, SuggestionGrid } from "@fabrials/ui";

API reference

Prop / exportTypeDescription
titleReactNodeThe prompt.
descriptionReactNodeA short explanation. Clamps at two lines.
iconReactNodeOptional leading icon.
onClick() => voidEach card is a button and accepts disabled.
columns1 | 2 | 3 | 4SuggestionGrid columns on wide screens.

Behavior

Give the grid an aria-label. What a suggestion does is up to the host.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.