Block
A polymorphic building block component that serves as a foundational element to replace View components throughout the application. Similar to a
<div> in web development. The bg prop resolves through the theme — same lookup rules as <Card bg=...>.Examples
(2)Properties
(53)Basic usage
Combine spacing, layout, and polymorphic props on
Block to build cards, responsive rows, and button-style actions without custom wrappers.bg shorthand
bg resolves through the theme. Pass a palette name ('primary', 'success') for a subtle tint (shade-1), a 'palette.shade' like 'primary.6' for a specific shade, a theme-background key ('surface', 'subtle', 'elevated'), or any CSS color string. The same resolver powers <Card bg=...>.Scan to open this page on your phonereact-ui-library.com/components/Block
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources