@urban-ui/separator
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@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

| Prop | Type | Description | | ----------- | --------------------------------------------------- | ------------------- | ------------- | | tone | 'primary' | 'critical' | 'neutral' | 'highlight' | Defaults to neutral | | size | 'sm' | 'md' | 'lg | Defaults to md | | orientation | 'h' | \ 'v' | Defaults to h | | type | 'normal' | 'strong' | 'transparent' | Defaults to normal |

Package Sidebar

Install

npm i @urban-ui/separator

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

33.2 kB

Total Files

8

Last publish

Collaborators

  • mattstyles