Skip to content

Commit

Permalink
Add fullWidth prop to VuiTopicButton.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Nov 19, 2023
1 parent c453ce1 commit a01c17d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/components/topicButton/TopicButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ type Props = {
href?: string;
onClick?: () => void;
title?: string;
fullWidth?: boolean;
};

export const VuiTopicButton = ({ children, className, href, onClick, title, ...rest }: Props) => {
const classes = classNames("vuiTopicButton", className);
export const VuiTopicButton = ({ children, className, href, onClick, title, fullWidth, ...rest }: Props) => {
const classes = classNames("vuiTopicButton", className, {
"vuiTopicButton--fullWidth": fullWidth
});
const content = (
<>
{title && (
Expand Down
4 changes: 4 additions & 0 deletions src/lib/components/topicButton/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
z-index: 1;
}
}

.vuiTopicButton--fullWidth {
width: 100%;
}

0 comments on commit a01c17d

Please sign in to comment.