frontend/src/components/ui/Rocket/InlineInfo/InlineInfo.spec.md
| Prop | Type | Values | Default |
|---|---|---|---|
| type | string | info | warning | danger | info |
| variant | string | ghost | secondary | outline | filled | ghost |
| title | ReactNode | — | — |
| description | ReactNode | — | — |
| action | ReactNode | — | — |
| icon | ReactNode | custom icon override | auto per type |
| className | string | — | — |
[icon 18×18] [content]
├── title (12px medium, text/medium)
├── description (12px regular, text/placeholder) — optional
└── action slot — optional
flex, gap-1.5 (6px)flex-col, gap-2 (8px)| Type | Figma token | ToolJet class |
|---|---|---|
| info | icon/accent | tw-text-icon-accent |
| warning | icon/warning | tw-text-icon-warning |
| danger | icon/danger | tw-text-icon-danger |
| Variant | Figma token | ToolJet class | Extra |
|---|---|---|---|
| ghost | — | (no bg) | no padding, no radius |
| secondary | Interactive/default | tw-bg-interactive-default | tw-p-3 tw-rounded-md |
| outline | --bg-surface-layer-01 | tw-bg-background-surface-layer-01 | tw-p-3 tw-rounded-md tw-shadow-elevation-100 |
| filled + info | --bg-accent-weak | tw-bg-background-accent-weak | tw-p-3 tw-rounded-md |
| filled + warning | background/warning-weak | tw-bg-background-warning-weak | tw-p-3 tw-rounded-md |
| filled + danger | background/error-weak | tw-bg-background-error-weak | tw-p-3 tw-rounded-md |
| Element | Figma token | ToolJet class |
|---|---|---|
| title | text/medium | tw-text-text-medium tw-font-medium |
| description | text/placeholder | tw-text-text-placeholder |
Both 12px / 18px line-height → tw-text-base (maps to 12px in ToolJet config)
| Type | Icon (lucide) |
|---|---|
| info | AlertCircle or Info |
| warning | AlertTriangle |
| danger | AlertTriangle |
Icon size: 18px (matches Figma's 18×18 frame).
Shape B — variants only (type + variant), no sizes
Uses filled variant with type-specific bg applied dynamically.
role="alert" for accessibility). AlertTitle and AlertDescription used for sub-content.action slot accepts any ReactNode — typically a <Button variant="outline" size="medium"> per Figma.type prop but can be overridden via icon prop.variant="ghost" has no padding/radius — inline appearance.tw-p-3 tw-rounded-md.