Skip to content

Commit

Permalink
fix(Icons): size prop should support Tailwind media breakpoints (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini authored Dec 30, 2024
1 parent 1f2c213 commit 54cb421
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions packages/ui-types/src/svgicon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,11 @@ declare namespace SvgIconTypes {
semantic?: boolean;
/**
* The size of the icon. This will set the width and height of the icon.
* It should be a valid Tailwind CSS size class, such as "size-6" or "size-px".
* It can also include breakpoints, such as "sm:size-6" or "md:size-px".
* @link https://tailwindcss.com/docs/size
*/
size?:
| "size-1"
| "size-2"
| "size-3"
| "size-4"
| "size-5"
| "size-6"
| "size-7"
| "size-8"
| "size-9"
| "size-10";
size?: string;
/**
* The viewBox to use. If not provided, the default viewBox will be used.
*/
Expand Down

0 comments on commit 54cb421

Please sign in to comment.