4.2.0
CoreToggle group

ToggleGroup API

Every prop of the 2 parts ToggleGroup exports, generated from the package manifest.

import { ToggleGroup, ToggleGroupItem } from '@oceanic-hub/brand-system'
Layer
core — shadcn-derived primitives.
Exports
ToggleGroup · ToggleGroupItem
Variants
  • variant: default | outline
  • size: lg | md | sm
  • shape: default | pill
  • variant: default | outline
  • size: lg | md | sm
  • shape: default | pill
Contract
packages/brand-system/src/components/toggle-group.contract.test-d.ts
Demos
7 on the ToggleGroup page — rendered live, hydrated
Source
packages/brand-system/src/components/toggle-group.tsx

Generated from manifest/component-manifest.json, so it cannot drift from the source. For what ToggleGroup is for, how it composes and what it looks like, see ToggleGroup.

ToggleGroup

React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & { shape?: ToggleShape }

Prop

Type

Also inherited from @radix-ui/react-toggle-group — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.

Prop

Type

ToggleGroupItem

React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants> & { shape?: ToggleShape }

Prop

Type

Also inherited from @radix-ui/react-toggle-group — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.

Prop

Type

On this page