Skip to content

Commit

Permalink
fix: add oakbox componentprops to accept id / aria props
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalisin committed Dec 12, 2024
1 parent b0dc56f commit 77a109f
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import React from "react";
import React, { ComponentProps } from "react";

import { OakBox, OakBoxProps } from "@/components/atoms";
import { OakBox } from "@/components/atoms";

export type OakJauntyAngleLabelProps = {
label: string;
id?: string;
} & Omit<OakBoxProps, "onClick" | "label">;
} & ComponentProps<typeof OakBox>; // Adding div type for OakBox for aria features
export const OakJauntyAngleLabel = (props: OakJauntyAngleLabelProps) => {
const { label, id, ...oakBoxProps } = props;
const { label, ...oakBoxProps } = props;
return (
<OakBox
id={id}
$borderRadius={"border-radius-m"}
$ph={"inner-padding-xs"}
$pv={"inner-padding-ssx"}
Expand Down

0 comments on commit 77a109f

Please sign in to comment.