Chip
import React from 'react';
import { Chip } from 'seduo-ui';
const Example = () => (
<div>
<div className="d-flex justify-content-around">
<Chip text="Angličtina-začátečník" isSelected />
<Chip text="Angličtina-pokročilý" count={5} />
</div>
</div>
);
export default Example;
Properties
type Props = {|
text: string,
count: number,
onClick?: Function,
isSelected: boolean,
className: string,
|};
Chip.defaultProps = {
isSelected: false,
count: 0,
className: '',
}