react-icons/hi#HiClock TypeScript Examples
The following examples show how to use
react-icons/hi#HiClock.
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: index.tsx From ksana.in with Apache License 2.0 | 6 votes |
export function BlogCardPost({ post }: IBlogCardProps) {
return (
<Box maxW="sm" borderWidth="2px" borderRadius="lg" overflow="hidden" borderColor="orange.400">
<Box p="4" as="a" display="block" href={`/blog/${post.slug}`}>
<Heading as="h3" mb="2" size="md" color="orange.400" fontFamily="body">
{post.title}
</Heading>
<Button leftIcon={<HiClock />} colorScheme="gray" variant="solid" size="xs">
{post.date}
</Button>
<Text mt="4">{post.excerpt}</Text>
</Box>
</Box>
)
}
Example #2
Source File: [slug].tsx From ksana.in with Apache License 2.0 | 5 votes |
export default function BlogDetail({ post }: IBlogDetail) {
return (
<Layout>
<MetaHead title={`${post.title} | Ksana.in`} description={post.excerpt} />
<Head>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify(makeBreadcrumbBlogSchema({ title: post.title, slug: post.slug }))
}}
></script>
</Head>
<VStack spacing={4} textAlign="center" as="section" mt="32">
<Breadcrumb>
<BreadcrumbItem>
<BreadcrumbLink href="/">Home</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem>
<BreadcrumbLink href="/blog">Blog</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbItem isCurrentPage>
<BreadcrumbLink href={`/blog/${post.slug}`}>{post.title}</BreadcrumbLink>
</BreadcrumbItem>
</Breadcrumb>
<Container maxW={'4xl'} mx="auto" as="section" mt="8">
<VStack spacing={4} textAlign="center" className="blog-detail">
<Heading
as="h1"
fontWeight={700}
fontSize={{ base: '3xl', sm: '4xl', md: '5xl' }}
lineHeight={'110%'}
color="orange.400"
>
{post.title}
</Heading>
<Button leftIcon={<HiClock />} colorScheme="gray" variant="solid" size="xs">
{post.date}
</Button>
</VStack>
</Container>
</VStack>
<Container maxW={'4xl'} mx="auto" as="section" mt="8">
<div className="markdown">
<div
dangerouslySetInnerHTML={{
__html: `${post.content}`
}}
></div>
</div>
</Container>
</Layout>
)
}