Content Component
The Content component handles text and other content within elements, with full typography control and interactive variants.
Basic Usage
<Content color="white" fontWeight="500" padding="0.5rem 1rem">
Button Text
</Content>
Props
Typography
colorβ Text colorfontSizeβ Font sizefontWeightβ Font weightfontFamilyβ Font familytextAlignβ Text alignmenttextTransformβ Text transform (uppercase, etc.)textDecorationβ Text decoration (underline, etc.)lineHeightβ Line heightletterSpacingβ Letter spacingtextShadowβ Text shadow
Layout
paddingβ Internal paddingmarginβ External marginwidth,heightβ Dimensions
Advanced
textOverflow,whiteSpace,wordBreak,wordWrapβ Text overflow handlingelevationβ Z-index stacking ordervariantsβ State-specific property overrides
Interactive Typography
<Content
color="black"
fontWeight="400"
variants={{
default: { color: "black" },
hover: {
color: "blue",
textShadow: "0 1px 2px rgba(0,0,0,0.1)"
},
pressed: {
color: "darkblue"
}
}}
>
Interactive Text
</Content>