Skip to main content
K
Last modified: 4/Oct/2024

InfoBox

Use the InfoBox component to display short, textual information with a descriptive label.

#Usage

import { InfoBox } from '@kinsta/stratus' const MyComponent = () => ( <InfoBox label="Type of the Millennium Falcon"> YT-1300 Corellian light freighter </InfoBox> )

#Props

#label
string | ReactElement<any, string | JSXElementConstructor<any>>
Defaults to The label of the component
#isDense
boolean
@deprecated It's going to be removed in a future version and will be replaced with size prop
false
#children
ReactNode
The content of the component
#isLoading
boolean
false

#Types

  • InfoBoxProps: props of the InfoBox component processed by stratus
  • InfoBoxInterface: InfoBoxProps extended by `HTMLAttributes<HTMLDivElement>`

Read more about types here