Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | 9x 9x 9x 1x 1x | import React from 'react';
import { defaultProps } from './props/defaultProps';
import { propTypes } from './props/propTypes';
import { Icon } from '@zohodesk/icons';
import { Container } from '@zohodesk/components/lib/Layout';
import style from './NewStar.module.css';
export default class NewStar extends React.Component {
render() {
let { palette, customClass, position } = this.props;
let alignPosition = {
topRight: {
className: style.topRight
// align: 'right',
// alignBox: 'row',
// reverse: 'wrap'
},
topLeft: {
className: style.topLeft
// align: 'left',
// alignBox: 'row',
// reverse: 'wrap'
},
bottomLeft: {
className: style.bottomLeft
// align: 'left',
// alignBox: 'column-reverse',
// reverse: 'wrap'
},
bottomRight: {
className: style.bottomRight
// align: 'right',
// alignBox: 'column',
// reverse: 'wrap-reverse'
}
};
return (
<Container
alignBox='row'
isCover={false}
className={`${style.star} ${alignPosition[position].className} ${customClass}`}
>
<Icon name='ZD-snippetStar' iconClass={`${style[palette]} ${style.starOne}`} size='10' />
<Icon name='ZD-snippetStar' iconClass={`${style[palette]} ${style.starTwo}`} size='10' />
<Icon name='ZD-snippetStar' iconClass={`${style[palette]} ${style.starThree}`} size='10' />
</Container>
);
}
}
NewStar.propTypes = propTypes;
NewStar.defaultProps = defaultProps;
// if (__DOCS__) {
// NewStar.docs = {
// componentGroup: 'Atom'
// };
// }
|