react-icons/hi#HiOutlineUserCircle TypeScript Examples
The following examples show how to use
react-icons/hi#HiOutlineUserCircle.
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: Video.tsx From tobira with Apache License 2.0 | 6 votes |
Creators: React.FC<CreatorsProps> = ({ creators }) => (
<div css={{ display: "flex", alignItems: "center", gap: 8, marginBottom: 12 }}>
<HiOutlineUserCircle css={{ color: "var(--grey40)" }} />
<ul css={{
display: "inline-block",
listStyle: "none",
margin: 0,
padding: 0,
fontSize: 14,
fontWeight: "bold",
"& > li": {
display: "inline-block",
"&:not(:last-child)::after": {
content: "'•'",
margin: "0 8px",
color: "var(--grey65)",
},
},
}}>
{creators.map((c, i) => <li key={i}>{c}</li>)}
</ul>
</div>
)
Example #2
Source File: Search.tsx From tobira with Apache License 2.0 | 5 votes |
SearchEvent: React.FC<SearchEventProps> = ({
id, title, description, thumbnail, duration, creators, seriesTitle, isLive, created,
}) => {
const { t } = useTranslation();
return (
<Item key={id} link={`/!v/${id.slice(2)}`}>
<Thumbnail
event={{
...{ title, isLive, created },
thumbnail: thumbnail ?? null,
duration: duration,
audioOnly: false, // TODO
}}
css={{ width: "100%" }}
/>
<div css={{ color: "black" }}>
<h3 css={{
marginBottom: 6,
display: "-webkit-box",
WebkitBoxOrient: "vertical",
overflow: "hidden",
textOverflow: "ellipsis",
WebkitLineClamp: 2,
}}>{title}</h3>
<div css={{ fontSize: 14, display: "flex", alignItems: "center" }}>
<HiOutlineUserCircle css={{
color: "var(--grey40)",
fontSize: 16,
marginRight: 8,
}} />
{creators.join(", ")}
</div>
<Description text={description} lines={3} />
{/* TODO: link to series */}
{seriesTitle && <div css={{ fontSize: 14, marginTop: 4 }}>
{t("video.part-of-series") + ": " + seriesTitle}
</div>}
</div>
</Item>
);
}