본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Divider

원문 보기 위키 갱신

출처: 문서

본문

Examples

Using hr

Using li

  • List item one

  • List item two

Using div

Inset medium

Inset at various breakpoints

Vertical in flex layout

first item

second item

Vertical in flex layout, inset small

first item

second item

Vertical in flex layout, inset at various breakpoints

first item

second item

Switch orientation at various breakpoints

first item

second item

Props

Divider

*required | | Name | Type | Default | Description | className | string | | Additional classes added to the divider

| component | 'hr' | 'li' | 'div' | DividerVariant.hr | The component type to use

| inset | { default?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; sm?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; md?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; lg?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; xl?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; '2xl'?: 'insetNone' | 'insetXs' | 'insetSm' | 'insetMd' | 'insetLg' | 'insetXl' | 'inset2xl' | 'inset3xl'; } | | Insets at various breakpoints.

| orientation | { default?: 'vertical' | 'horizontal'; sm?: 'vertical' | 'horizontal'; md?: 'vertical' | 'horizontal'; lg?: 'vertical' | 'horizontal'; xl?: 'vertical' | 'horizontal'; '2xl'?: 'vertical' | 'horizontal'; } | | Indicates how the divider will display at various breakpoints. Vertical divider must be in a flex layout.

| role | 'separator' | 'presentation' | 'separator' | The ARIA role of the divider when the component property has a value other than "hr".

Edit this page on GitHub

더 알아보기 (Learn more)