0.1.0 • Published 1 year ago

@urban-ui/separator v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@urban-ui/separator

content | separator

npm minzip size License

Styled wrapper around radix-ui/separator

## Getting started

pnpm add -S @urban-ui/separator
import {Separator} from '@urban-ui/separator'

export function MyComponent() {
  return <Separator />
}

Details

Applies styling to radix-ui/separator. All props that apply to the radix-ui separator apply here.

The transparent type applies a semi-transparent border which gives a slight indication of depth. This has less visual weight than the strong variant.

API

PropTypeDescription
tone'primary' | 'critical' | 'neutral' | 'highlight'Defaults to neutral
size'sm' | 'md' | 'lgDefaults to md
orientation'h'\ 'v'Defaults to h
type'normal' | 'strong' | 'transparent'Defaults to normal