@simoncomputing/mui-bueno-v2 0.23.1 → 0.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
  - Minor increment --> singlular/minor changes. Minimal breaking changes.
12
12
  - Patch increment --> singlular/minor changes. Zero breaking changes.
13
13
 
14
+ ## [0.23.2] - 2026-01-29
15
+
16
+ ### Fixed
17
+
18
+ - `TextIcon`
19
+ - New component to easily align icons with text
20
+
14
21
  ## [0.23.1] - 2026-01-23
15
22
 
16
23
  ### Fixed
@@ -0,0 +1,25 @@
1
+ import { SvgIcon, SvgIconProps } from '@mui/material';
2
+ export type TextIconProps = {
3
+ /**
4
+ * MUI Icon
5
+ */
6
+ icon: typeof SvgIcon;
7
+ /**
8
+ * Vertical alignment, from the top, of the icon. This will depend on the
9
+ * specific icon you are using since MUI Icons are SVGs are aren't guaranteed
10
+ * to be centered the same way.
11
+ *
12
+ * @default '3px'
13
+ */
14
+ offset?: string;
15
+ } & Omit<SvgIconProps, 'fontSize'>;
16
+ /**
17
+ * Intended to be used to render an icon next to text.
18
+ *
19
+ * MUI icons are SVGs so they always need slight alignment adjustments
20
+ * when displayed with text. This component is intended to help you align your
21
+ * icon with text. Keep in mind you will likely need to tweak the `offset`
22
+ * prop.
23
+ */
24
+ export declare const TextIcon: ({ icon: Icon, offset, ...rest }: TextIconProps) => import("react/jsx-runtime").JSX.Element;
25
+ export default TextIcon;