UNPKG

common-intellisense

Version:
116 lines (115 loc) 3.34 kB
{ "props": [ { "Attribute": "href", "Type": "`string`", "Description": "The URL to link to.", "Default": "-" }, { "Attribute": "size", "Type": "`sm` | `md` | `lg`", "Description": "The size of the link.", "Default": "`md`" }, { "Attribute": "color", "Type": "`foreground` | `primary` | `secondary` | `success` | `warning` | `danger`", "Description": "The color of the link.", "Default": "`primary`" }, { "Attribute": "underline", "Type": "`none` | `hover` | `always` | `active` | `focus`", "Description": "The underline of the link.", "Default": "`none`" }, { "Attribute": "isExternal", "Type": "`boolean`", "Description": "Whether the link should open in a new tab.", "Default": "`false`" }, { "Attribute": "showAnchorIcon", "Type": "`boolean`", "Description": "Whether to show the anchor icon.", "Default": "`false`" }, { "Attribute": "anchorIcon", "Type": "`ReactNode`", "Description": "The anchor icon.", "Default": "-" }, { "Attribute": "isBlock", "Type": "`boolean`", "Description": "Whether the link should be rendered as block with a hover effect.", "Default": "`false`" }, { "Attribute": "isDisabled", "Type": "`boolean`", "Description": "Whether the link is disabled.", "Default": "`false`" }, { "Attribute": "disableAnimation", "Type": "`boolean`", "Description": "Whether to disable link and block animations.", "Default": "`false`" } ], "link": "https://nextui.org/docs/components/link", "events": [ { "Attribute": "onPress", "Type": "`(e: PressEvent) => void`", "Description": "Handler called when the press is released over the target.", "Default": "-" }, { "Attribute": "onPressStart", "Type": "`(e: PressEvent) => void`", "Description": "Handler called when a press interaction starts.", "Default": "-" }, { "Attribute": "onPressEnd", "Type": "`(e: PressEvent) => void`", "Description": "Handler called when a press interaction ends, either over the target or when the pointer leaves the target.", "Default": "-" }, { "Attribute": "onPressChange", "Type": "`(isPressed: boolean) => void`", "Description": "Handler called when the press state changes.", "Default": "-" }, { "Attribute": "onPressUp", "Type": "`(e: PressEvent) => void`", "Description": "Handler called when a press is released over the target, regardless of whether it started on the target or not.", "Default": "-" }, { "Attribute": "onKeyDown", "Type": "`(e: KeyboardEvent) => void`", "Description": "Handler called when a key is pressed.", "Default": "-" }, { "Attribute": "onKeyUp", "Type": "`(e: KeyboardEvent) => void`", "Description": "Handler called when a key is released.", "Default": "-" }, { "Attribute": "onClick", "Type": "`MouseEventHandler`", "Description": "The native link click event handler (**Deprecated**) use **onPress** instead.", "Default": "-" } ] }