react-icons/bs#BsChevronDown JavaScript Examples
The following examples show how to use
react-icons/bs#BsChevronDown.
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: Accordian.js From portfolio-react with MIT License | 5 votes |
function Accordian({title, data}) {
const [showAccordian, setShowAccordian] = useState(true)
return (
<div className='portfolio-accordian'>
<div className='header'>
<div className='title'>
<h3>{title}</h3>
<a href={data.url}>
<AiOutlineLink />
</a>
<span>{data.duration}</span>
</div>
<span
role='button'
className='dropdown-icon'
onClick={() => setShowAccordian(!showAccordian)}>
{!showAccordian ? <BsChevronDown /> : <BsChevronUp />}
</span>
</div>
{showAccordian && (
<div className='content'>
<ul>
{data.description.map((item, index) => (
<li key={index}>{item}</li>
))}
</ul>
</div>
)}
</div>
)
}