Skip to content

Commit

Permalink
chore: export TextLinkProps
Browse files Browse the repository at this point in the history
  • Loading branch information
maxholman committed Jan 17, 2023
1 parent bd449ff commit b299ef8
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions lib/links.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import type { FC } from 'react';
import type { FC, PropsWithChildren } from 'react';
import { Box, BoxBasedComponentProps } from './core.js';
import { linkStyleVariant, LinkVariant } from './links.css.js';
import type { Merge } from './types.js';

export const TextLink: FC<
Merge<
BoxBasedComponentProps<'span' | 'a' | 'button'>,
{ href?: string; weight?: LinkVariant }
>
> = ({
type TextLinkCommonProps = {
weight?: LinkVariant;
safe?: boolean;
};

export type TextLinkProps = PropsWithChildren<
Merge<BoxBasedComponentProps<'a'>, TextLinkCommonProps>
>;


export const TextLink: FC<TextLinkProps> = ({
component = 'a',
children,
className,
Expand Down

0 comments on commit b299ef8

Please sign in to comment.