MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / Button

Function Button

dashboard/shell/src/sdk.jsx:141–176  ·  view source on GitHub ↗
({
  className,
  variant,
  size,
  ghost,
  outlined,
  secondary,
  destructive,
  children,
  ...rest
})

Source from the content-addressed store, hash-verified

139export const Separator = block("hr", "ts-separator");
140
141export function Button({
142 className,
143 variant,
144 size,
145 ghost,
146 outlined,
147 secondary,
148 destructive,
149 children,
150 ...rest
151}) {
152 const resolvedVariant =
153 variant ||
154 (destructive
155 ? "destructive"
156 : ghost
157 ? "ghost"
158 : outlined
159 ? "outline"
160 : secondary
161 ? "secondary"
162 : "");
163 return React.createElement(
164 "button",
165 {
166 className: cn(
167 "ts-button",
168 resolvedVariant ? `ts-button-${resolvedVariant}` : "",
169 size ? `ts-button-${size}` : "",
170 className,
171 ),
172 ...rest,
173 },
174 children,
175 );
176}
177
178export function Input({ className, ...rest }) {
179 return React.createElement("input", { className: cn("ts-input", className), ...rest });

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected