Usage

import { TextButton, SvgSearch } from '@loomhq/lens'
<TextButton icon={<SvgSearch />}>Search</TextButton>

Sizes

With icon

See the Icon set.

Icon position

Without icon

Offset

Use offsetSide to offset the padding and align to a side.

Disabled

Props

name
type
default
size
'small' | 'medium' | 'large'
'medium'
iconPosition
'left' | 'right'
'left'
onClick
React.ReactEventHandler
isDisabled
boolean
icon
React.ReactNode
children
React.ReactNode
required
htmlTag
'button' | 'a'
offsetSide
'left' | 'right'
href
string
target
string
type
string