Shorthand for alignItems
style prop
Gradient Border
Renders a Flex
component with a background image that plays the role of a
gradient border.
Import#
import { GradientBorder } from "/components/GradientBorder/GradientBorder.js"
Usage#
<Flexp="2px"justify="center"align="center"width="100px"height="100px"bg="radial-gradient(69.43% 69.43% at 50% 50%, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)"><Box w="100%" h="100%" bg="black"></Box></Flex>
function Example() {return (<GradientBorder w="100px" h="100px"><Box w="100%" h="100%" bg="black"></Box></GradientBorder>)}
GradientBorder Props#
GradientBorder
composes the Flex
component.
align
align
Description
Type
SystemProps["alignItems"]
basis
basis
Description
Shorthand for flexBasis
style prop
Type
SystemProps["flexBasis"]
direction
direction
Description
Shorthand for flexDirection
style prop
Type
SystemProps["flexDirection"]
grow
grow
Description
Shorthand for flexGrow
style prop
Type
SystemProps["flexGrow"]
justify
justify
Description
Shorthand for justifyContent
style prop
Type
SystemProps["justifyContent"]
shrink
shrink
Description
Shorthand for flexShrink
style prop
Type
SystemProps["flexShrink"]
wrap
wrap
Description
Shorthand for flexWrap
style prop
Type
SystemProps["flexWrap"]
© 2021, Made with ❤️ by Creative Tim & Simmmple for a better web