File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/sdk-components-react-radix/src Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,11 @@ export const AccordionItem = forwardRef<
5050 return < Item ref = { ref } value = { value ?? index ?? "" } { ...props } /> ;
5151} ) ;
5252
53- const defaultTag = "h3" ;
54- type Tag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" ;
55- type Props = ComponentProps < typeof Header > & { tag ?: Tag } ;
53+ const defaultTag = "h1" ;
54+ type Props = ComponentProps < typeof Header > ;
5655export const AccordionHeader = forwardRef < HTMLHeadingElement , Props > (
57- ( { tag : legacyTag , ...props } , ref ) => {
58- const Heading = getTagFromProps ( props ) ?? legacyTag ?? defaultTag ;
56+ ( { ...props } , ref ) => {
57+ const Heading = getTagFromProps ( props ) ?? defaultTag ;
5958 return (
6059 < Header asChild >
6160 < Heading ref = { ref } { ...props } />
You can’t perform that action at this time.
0 commit comments