Skip to content

Commit

Permalink
chore: allow appbar-section to accept html attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoomFX committed Apr 1, 2024
1 parent 21de9a7 commit da75552
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions packages/html/src/appbar/appbar-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@ import { classNames } from '../misc';

const className = `k-appbar-section`;

export const AppbarSection = (props: React.HTMLAttributes<HTMLSpanElement>) => (
<div className={classNames(className, props.className)}>
{props.children}
</div>
);
export const AppbarSection = (props: React.HTMLAttributes<HTMLDivElement>) => {
const {
...other
} = props;

return (
<div
{...other}
className={classNames(className, props.className)}
>
{props.children}
</div>
);
};

0 comments on commit da75552

Please sign in to comment.