@material-ui/icons#BrightnessMedium TypeScript Examples

The following examples show how to use @material-ui/icons#BrightnessMedium. 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: within-InfoListItem.tsx    From react-component-library with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
inInfoListItem = (): StoryFnReactReturnType => {
    const direction = getDirection();
    const theme = useTheme();

    return (
        <List style={{ width: '80%', padding: 0 }}>
            <InfoListItem
                icon={<BrightnessMedium />}
                title={'@brightlayer-ui/react-themes'}
                subtitle={'Light and dark themes supported'}
                backgroundColor={useDarkMode() ? Colors.black[900] : 'white'}
                rightComponent={
                    <div style={{ display: 'flex' }}>
                        <ListItemTag
                            label={'Build Passing'}
                            backgroundColor={Colors.green[300]}
                            fontColor={Colors.black[900]}
                            style={{
                                marginRight: direction === 'rtl' ? 0 : theme.spacing(2),
                                marginLeft: direction === 'rtl' ? theme.spacing(2) : 0,
                            }}
                        />
                        <ListItemTag label={'5 Bugs'} backgroundColor={Colors.red[300]} fontColor={Colors.black[900]} />
                    </div>
                }
            />
        </List>
    );
}