Skip to content

Commit

Permalink
fix(docs): update docs page.tsx with component size props
Browse files Browse the repository at this point in the history
  • Loading branch information
Lillebo committed Oct 14, 2024
1 parent 345b4a2 commit a974edb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/docs/src/app/[lang]/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default async function Page({ params }: DocsPageType) {
{...props}
/>
),
p: (props: React.HTMLAttributes<HTMLParagraphElement>) => <Paragraph {...props} />,
p: (props: React.HTMLAttributes<HTMLParagraphElement>) => <Paragraph size="sm" {...props} />,
Alert: ({ size = 'sm', iconTitle = ' ', ...props }: AlertProps) => (
<Alert
size={size}
Expand All @@ -125,7 +125,7 @@ export default async function Page({ params }: DocsPageType) {
),
Image,
table: ({ children, ...props }: React.TableHTMLAttributes<HTMLTableElement>) => (
<Table {...(props as any)}>{children}</Table>
<Table {...(props as any)} size="sm">{children}</Table>
),
thead: ({ children, ...props }: React.HTMLAttributes<HTMLTableSectionElement>) => (
<TableHead {...props}>{children}</TableHead>
Expand All @@ -142,11 +142,11 @@ export default async function Page({ params }: DocsPageType) {
td: (
{ children, ...props }: React.TdHTMLAttributes<HTMLTableDataCellElement>, // eslint-disable-line
) => <TableCell {...props}>{children}</TableCell>,
Ingress: ({ size = 'xs', ...rest }: IngressProps) => (
Ingress: (props: IngressProps) => (
<Ingress
asChild
size={size}
{...rest}
{...props}
size={'md'}
/>
),
a: ({ children, ...rest }: React.AnchorHTMLAttributes<HTMLAnchorElement>) => {
Expand Down

0 comments on commit a974edb

Please sign in to comment.