Skip to content

Commit

Permalink
update some comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tlabaj committed Apr 22, 2024
1 parent 68f8342 commit db2276e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface ToggleGroupItemProps extends Omit<React.HTMLProps<HTMLDivElemen
text?: React.ReactNode;
/** Icon rendered inside the toggle group item */
icon?: React.ReactNode;
/** Sets position of the icon */
/** Sets position of the icon when text is also passed in */
iconPosition?: 'start' | 'end';
/** Additional classes added to the toggle group item */
className?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ToggleGroupIcon: React.FunctionComponent = () => {
};
return (
<>
<ToggleGroup aria-label="Text and icon toggle group">
<ToggleGroup aria-label="Text and icon toggle group with icons at start">
<ToggleGroupItem
icon={<CopyIcon />}
text="Copy"
Expand All @@ -40,7 +40,7 @@ export const ToggleGroupIcon: React.FunctionComponent = () => {
/>
</ToggleGroup>
<br />
<ToggleGroup aria-label="Text and icon toggle group">
<ToggleGroup aria-label="Text and icon toggle group with icons at end">
<ToggleGroupItem
icon={<CopyIcon />}
iconPosition="end"
Expand Down

0 comments on commit db2276e

Please sign in to comment.