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
#children
ReactNode
The content of the component
#isLoading
boolean
#Types
InfoBoxProps
: props of theInfoBox
component processed by stratusInfoBoxInterface
:InfoBoxProps
extended by`HTMLAttributes<HTMLDivElement>`
Read more about types here