FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tanstack.com/src/components/LibraryWordmark.tsx at main · TanStack/tanstack.com · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
TanStack
/
tanstack.com
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
400
Star
1.1k
Code
Issues
45
Pull requests
58
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
tanstack.com
/
src
/
components
/
LibraryWordmark.tsx
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (45 loc) · 1.2 KB
Breadcrumbs
tanstack.com
/
src
/
components
/
LibraryWordmark.tsx
Copy path
File metadata and controls
48 lines (45 loc) · 1.2 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import
{
twMerge
}
from
'tailwind-merge'
import
type
{
LibrarySlim
}
from
'~/libraries'
type
LibraryWordmarkProps
=
{
className
?:
string
colorProduct
?:
boolean
includeTanStack
?:
boolean
library
:
Pick
<
LibrarySlim
,
'colorFrom'
|
'colorTo'
|
'name'
>
productClassName
?:
string
tanStackClassName
?:
string
}
export
function
LibraryWordmark
(
{
className
,
colorProduct
=
true
,
includeTanStack
=
true
,
library
,
productClassName
,
tanStackClassName
,
}
:
LibraryWordmarkProps
)
{
const
productName
=
library
.
name
.
replace
(
/
^
T
a
n
S
t
a
c
k
\s
+
/
i
,
''
)
return
(
<
span
className
=
{
twMerge
(
'inline-flex flex-wrap items-baseline gap-x-[0.22em] gap-y-1 font-black uppercase leading-none [letter-spacing:-.05em]'
,
className
,
)
}
>
{
includeTanStack
?
(
<
span
className
=
{
twMerge
(
'inline-block'
,
tanStackClassName
)
}
>
TanStack
</
span
>
)
:
null
}
<
span
className
=
{
twMerge
(
'inline-block pr-1'
,
colorProduct
?
`bg-linear-to-r bg-clip-text text-transparent
${
library
.
colorFrom
}
${
library
.
colorTo
}
`
:
''
,
productClassName
,
)
}
>
{
productName
}
</
span
>
</
span
>
)
}
Back
|
FazBrowse Home
|
New Git URL