@engrate/components 0.1.6 → 0.1.7

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A React component library built with Tailwind CSS, following Engrate's brand guidelines. Features accessible, customizable components with TypeScript support.
4
4
 
5
+ > **🤖 AI Agents:** See [SKILL.md](SKILL.md) for comprehensive usage instructions and component patterns.
6
+
5
7
  ## Installation
6
8
 
7
9
  ```bash
@@ -26,6 +26,8 @@ interface GridProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'cols'> {
26
26
  align?: ResponsiveValue<AlignValue>;
27
27
  /** Horizontal alignment of items. Supports responsive values. */
28
28
  justify?: ResponsiveValue<JustifyValue>;
29
+ /** The HTML element to render as (e.g., 'section', 'main', 'nav') */
30
+ as?: React.ElementType;
29
31
  /** Render as a child component using Slot */
30
32
  asChild?: boolean;
31
33
  }
@@ -67,6 +69,8 @@ interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
67
69
  rowSpan?: ResponsiveValue<RowSpanValue>;
68
70
  /** Column start position for the item. Supports responsive values. */
69
71
  colStart?: ResponsiveValue<ColStartValue>;
72
+ /** The HTML element to render as (e.g., 'section', 'article', 'aside') */
73
+ as?: React.ElementType;
70
74
  /** Render as a child component using Slot */
71
75
  asChild?: boolean;
72
76
  }
@@ -8,6 +8,8 @@ declare const stackVariants: (props?: ({
8
8
  wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
10
  interface StackProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
11
+ /** The HTML element to render as (e.g., 'section', 'nav', 'ul') */
12
+ as?: React.ElementType;
11
13
  /** Render as a child component using Slot */
12
14
  asChild?: boolean;
13
15
  }