Shadows
React
A set of shadow presets are available to be applied to any system component via
the shadow
or boxShadow
style prop.
<Box shadow="default">Shadow Box</Box>
Shadow
Standard shadows used to create the appearance of depth or layers.
Inset
Inset shadows are the inverse of distance
, for creating an inlay effect.
Halo
Border effects applied via CSS box-shadow
to prevent affecting the dimensions
of a container. These are usually used to indicate focus or selection.
Ring
Similar to Halo above, but thinner.
Legacy
React Native
To achieve drop shadow effect in React Native you can leverage the Shadow
component, which builds on top of Stack
and leverages the
boxShadow
property available in React Native 19 through the New Architecture.
import { Body, Shadow } from '@hoverinc/design-system-react-native';const App = () => ( <Shadow alignItems="center" borderRadius="$large" justifyContent="center" padding="$1000" > <Body>Faculdade de Churrasco</Body> </Shadow>);
