@manta-eu/react/pill
Reference for @manta-eu/react/pill as it is on main.
Type Aliases
BasePillProps
BasePillProps =
ComponentProps<"div"> &VariantPropsOf<typeofpillConfig> &object
Type Declaration
asChild?
optionalasChild?:boolean
textClassName?
optionaltextClassName?:string
IconOnlyPillProps
IconOnlyPillProps =
BasePillProps&object
Type Declaration
aria-label
aria-label:
string
icon
icon:
ComponentType<{className?:string; }>
iconOnly
iconOnly:
true
label?
optionallabel?:never
LabeledPillProps
LabeledPillProps =
BasePillProps&object
Type Declaration
icon?
optionalicon?:ComponentType<{className?:string; }>
iconOnly?
optionaliconOnly?:false|never
label
label:
string
PillProps
PillProps = (
IconOnlyPillProps|LabeledPillProps) &object
Type Declaration
ref?
optionalref?:Ref<HTMLDivElement>
Variables
pillConfig
constpillConfig:object
Type Declaration
base
base:
string
defaultVariants
defaultVariants:
object
defaultVariants.border
readonlyborder:true=true
defaultVariants.rounded
readonlyrounded:"rounded"="rounded"
defaultVariants.size
readonlysize:"base"="base"
variants
variants:
object
variants.border
border:
object
variants.border.false
false:
string
variants.border.true
true:
string
variants.rounded
rounded:
object
variants.rounded.rounded
rounded:
string="rounded-full"
variants.rounded.square
square:
string="rounded-sm-v4"
variants.size
size:
object
variants.size.base
base:
string[]
variants.size.lg
lg:
string[]
variants.size.sm
sm:
string[]
Functions
Pill()
Pill(
props):Element
Parameters
props
Returns
Element