react-icons/ri#RiErrorWarningLine TypeScript Examples
The following examples show how to use
react-icons/ri#RiErrorWarningLine.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WarningBadge.tsx From slice-machine with Apache License 2.0 | 6 votes |
WarningBadge: React.FunctionComponent<WarningBadgeProps> = ({ sx }) => (
<Flex
sx={{
height: 20,
width: 20,
justifyContent: "center",
alignItems: "center",
borderRadius: "50%",
borderStyle: "solid",
backgroundColor: "lightOrange",
borderColor: "lightOrange",
borderWidth: 1,
mr: 2,
...sx,
}}
>
<RiErrorWarningLine color="#F2994A" />
</Flex>
)
Example #2
Source File: WarningSection.tsx From slice-machine with Apache License 2.0 | 6 votes |
WarningSection: React.FunctionComponent<WarningSectionProps> = ({ title, sx, children, }) => ( <Flex sx={{ p: 3, bg: "lightOrange", flexDirection: "column", borderRadius: 4, ...sx, }} > <Flex sx={{ alignItems: "center", }} > <RiErrorWarningLine color="#F2994A" /> <Text sx={{ ml: 1, fontWeight: 500, }} > {title} </Text> </Flex> {!!children && ( <Text variant={"xs"} sx={{ mt: 2 }}> {children} </Text> )} </Flex> )