@hanzo/ui

Button Group

import { ButtonGroup, ButtonGroupContext } from '@hanzo/ui'

No examples yet.

Types

export type ButtonGroupDefaults = { size?: ButtonSize; variant?: ButtonVariant; tone?: ButtonTone; framed?: boolean }
export type ButtonGroupProps = Omit<ComponentProps<typeof XStack>, 'children'> & {
  /** The buttons share their edges (default) or stand 2px apart. */
  attached?: boolean
  /** The buttons sit inside a bordered frame. */
  framed?: boolean
  size?: ButtonSize
  variant?: ButtonVariant
  tone?: ButtonTone
  /** Names the group for assistive technology, which reads it as one control. */
  'aria-label'?: string
  children?: ReactNode
}

Exports

ButtonGroupButtonGroupContexttype ButtonGroupPropstype ButtonGroupDefaults