A next-generation tool to create blazing-fast documentation sites
API
created:3/5/2021
updated:3/5/2021
loc
14
comments
21%
passed
2
coverage
50%

Link

avatar of atanasster
@component-controls/components
3.14.5

Configurable anchor link with a LinkContext. Also checks if the link is intrenal to the site/app or external.

import { Link } from '@component-controls/components';
Name
Description
Default
HTMLAttributes(44 properties)
slot
string
-
style
CSSProperties
-
title
string
-
defaultChecked
boolean
-
defaultValue
string | number | readonly string[]
-
suppressContentEditableWarning
boolean
-
suppressHydrationWarning
boolean
-
accessKey
string
-
className
string
-
contentEditable
Booleanishinherit
-
contextMenu
string
-
dir
string
-
draggable
Booleanish
-
hidden
boolean
-
id
string
-
lang
string
-
placeholder
string
-
spellCheck
Booleanish
-
tabIndex
number
-
translate
yesno
-
radioGroup
string
-
role
string
-
about
string
-
datatype
string
-
inlist
any
-
prefix
string
-
property
string
-
resource
string
-
typeof
string
-
vocab
string
-
autoCapitalize
string
-
autoCorrect
string
-
autoSave
string
-
color
The color utility parses a component's
color
and
bg
props and converts them into CSS declarations. By default the raw value of the prop is returned.

Color palettes can be configured with the ThemeProvider to use keys as prop values, with support for dot notation. Array values are converted into responsive values.

string
-
itemProp
string
-
itemScope
boolean
-
itemType
string
-
itemID
string
-
itemRef
string
-
results
number
-
security
string
-
unselectable
onoff
-
inputMode

Hints at the type of data that might be entered by the user while editing the element or its contents

textnonetelurlemailnumericdecimalsearch
-
is

Specify that a standard HTML element should behave like a defined custom built-in element

string
-
Attributes(1 properties)
AnchorHTMLAttributes(9 properties)
AriaAttributes(48 properties)
DOMAttributes(161 properties)
-(1 properties)
BoxOwnProps(4 properties)
SpaceProps(28 properties)
BackgroundColorProps(2 properties)
OpacityProps(1 properties)

Commits

Date
Author
Commit Message
2/17/2021

atanasster

avatar of atanasster
feat: components history and catalog
10/28/2020

atanasster

avatar of atanasster
chore: axe-plugin and components
10/10/2020

atanasster

avatar of atanasster
feat: base url siteRoot configuration option
8/6/2020

atanasster

avatar of atanasster
fix: linting issues
6/16/2020

atanasster

avatar of atanasster
chore: merge app-components into components
5 commits
package
imports
peer
react
^17.0.1
ReactFC
*
theme-ui
^0.8.4
LinkProps
file
imports
"../ExternalLink"
ExternalLink
"./LinkContext"
useGetLinkClass
"./useIsLocalLink"
useIsLocalLink