mirror of
https://github.com/supabase/supabase.git
synced 2026-05-09 18:30:12 -04:00
05a542ccea
* Add lucide-react to docs (to make the autocomplete work). * Migrate the docs app icons. * Migrate the ui-patterns. * Remove the old icons from ui package. * Migrate the www app from react-feather icons. * Migrate all of studio icons. * Migrate the only component in design-system. * Fix an old import in ui package. Revert an import in docs app. * Fix some pages in www. * Remove unneeded files used in generation of icons. * Fix a prettier error. * Fix more issues in www. * Fix an issue in Log Date picker. * Replace all string sizes with number sizes because the icons grew in some cases. * Fix more imports in security page. * Fix an extra import. * Remove the size prop from all icons if they're in a button and they match the button size. * Minor fixes for docs and www. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
23 lines
621 B
TypeScript
23 lines
621 B
TypeScript
import { ChevronRight } from 'lucide-react'
|
|
import Link from 'next/link'
|
|
|
|
function TextLink({ url = '', label, ...props }: any) {
|
|
return (
|
|
<Link
|
|
href={url}
|
|
className="text-foreground-light hover:text-foreground mt-3 block cursor-pointer text-sm"
|
|
{...props}
|
|
>
|
|
<div className="group flex items-center gap-1">
|
|
<span className="sr-only">{`${label} about ${url}`}</span>
|
|
<span>{label}</span>
|
|
<div className="transition-all group-hover:ml-0.5">
|
|
<ChevronRight size={14} strokeWidth={2} />
|
|
</div>
|
|
</div>
|
|
</Link>
|
|
)
|
|
}
|
|
|
|
export default TextLink
|