InputGroup API
Every prop of the 6 parts InputGroup exports, plus the 1 symbol it exports alongside them, generated from the package manifest.
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from '@oceanic-hub/brand-system'- Layer
- core — shadcn-derived primitives.
- Exports
- InputGroup · InputGroupAddon · InputGroupButton · InputGroupInput · InputGroupText · InputGroupTextareaalso: inputGroupAddonVariantstypes: InputGroupAddonProps · InputGroupButtonProps · InputGroupProps
- Variants
- align: inline-start | inline-end | block-start | block-end
- size: icon-sm | sm
- variant: default | destructive | ghost | link | outline | secondary
- size: default | sm
- Contract
- packages/brand-system/src/components/input-group.contract.test-d.ts
- Demos
- 11 on the InputGroup page — rendered live, hydrated
- Source
- packages/brand-system/src/components/input-group.tsx
Generated from manifest/component-manifest.json, so it cannot drift from the source. For what InputGroup is for, how it composes and what it looks like, see InputGroup.
InputGroup
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
InputGroupAddon
InputGroupAddonProps
Prop
Type
Also accepts everything from React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof inputGroupAddonVariants>.
InputGroupButton
InputGroupButtonProps
Prop
Type
Also accepts everything from Omit<ButtonProps, 'size'>.
InputGroupInput
InputProps
Prop
Type
Also accepts everything from Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>.
InputGroupText
A styled <span> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
InputGroupTextarea
TextareaProps
Prop
Type
Also accepts everything from React.TextareaHTMLAttributes<HTMLTextAreaElement>.
inputGroupAddonVariants
A cva class builder. It returns the class string for a set of variants, so a foreign element can wear this component's surface — a link styled as a button, an AlertDialogAction styled as a destructive one. An advanced move: reach for the component first.
(props?: ({ align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined): stringParameters
Prop
Type
Variant axes
Read off the component's own cva config, so this table and the parts that consume it cannot disagree.
Prop
Type