Skip to content

Commit

Permalink
fix(fileuploaderitem): allow configurable className (#15879)
Browse files Browse the repository at this point in the history
Co-authored-by: TJ Egan <tw15egan@gmail.com>
  • Loading branch information
tay1orjones and tw15egan committed Mar 4, 2024
1 parent 9d4fbcd commit 59dbf52
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -83,12 +83,13 @@ function FileUploaderItem({
errorSubject,
errorBody,
size,
className,
...other
}: FileUploaderItemProps) {
const [isEllipsisApplied, setIsEllipsisApplied] = useState(false);
const prefix = usePrefix();
const { current: id } = useRef(uuid || uid());
const classes = cx(`${prefix}--file__selected-file`, {
const classes = cx(`${prefix}--file__selected-file`, className, {
[`${prefix}--file__selected-file--invalid`]: invalid,
[`${prefix}--file__selected-file--md`]: size === 'md',
[`${prefix}--file__selected-file--sm`]: size === 'sm',
Expand Down

0 comments on commit 59dbf52

Please sign in to comment.