Responsiveness
Last updated: 2.0.0 (16/01/2024)
Using responsive props
prop: Responsive<Type>export function MyApp() {
return (
<MyComponent
size={20}
/>
)
}export function MyApp() {
return (
<MyComponent
size={{
// Shown here in ascending size
mobile: 15,
tablet: 17,
default: 20, // Effectively the same as not expanding
desktopLarge: 25,
tv: 30,
}}
/>
)
}About fallbacks
Making a component responsive
Modifying breakpoints
Last updated